profile
viewpoint
ueno nayuta-ueno @nayutaco Fukuoka, Japan Embedded engineer

NayutaWalletKit/NayutaWalletKit 17

Nayuta Wallet is non-custodial wallet for Bitcoin & Lightning

nayuta-ueno/lightning-cdecker 1

copy from cdecker's lightning-elements branch

nayuta-ueno/lightning-rfc 1

Lightning Network Specifications

nayuta-ueno/bitcoin 0

Bitcoin Core integration/staging tree

nayuta-ueno/bitcoinj 0

A library for working with Bitcoin

nayuta-ueno/block-signing-federation 0

Elements Block Signing Federation demo using python Kafka

nayuta-ueno/btcpayserver 0

A cross platform, self-hosted server compatible with Bitpay API

nayuta-ueno/Curriculum-Vitae 0

curriculum vitae

nayuta-ueno/electrs 0

An efficient re-implementation of Electrum Server in Rust

nayuta-ueno/elements 0

Open Source implementation of advanced blockchain features extending the Bitcoin protocol

issue commentcosmos/ics

Cross-chain validation: current design overview & directions

Note there is some ongoing work on protocol design happening here: https://github.com/informalsystems/cross-chain-validation. Should be moved into this repo soon.

cwgoes

comment created time in 2 days

issue closedcosmos/ics

```suggestion

All content herein is licensed under [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0).

Originally posted by @duc811997 in https://github.com/cosmos/ics/pull/506#discussion_r563315208

closed time in 3 days

duc811997

PR opened decentralized-identity/ion

Add hyperlink for DIF

The first instance of "DIF" in this page will be linked to https://github.com/decentralized-identity which should hopefully help newbies figure out that DIF = Decentralized Identity Foundation

+1 -1

0 comment

1 changed file

pr created time in 3 days

issue closeddecentralized-identity/ion

What is DIF?

What is DIF as highlighted here: https://archive.vn/Ls4cn#selection-1549.100-1549.103 ?

A web search didn't help much as I was not about to guess which of these it supposedly meant (if any): https://acronyms.thefreedictionary.com/DIF

Please at least define it once in the document, like HTML (HyperText Markup Language), or include a hyperlink to a page that defines what it is.

Thanks!

closed time in 3 days

GlenCooper

issue commentdecentralized-identity/ion

What is DIF?

DIF is the Decentralized Identity Foundation, the standards/open source development organization this spec is being developed in.

GlenCooper

comment created time in 3 days

issue openeddecentralized-identity/ion

What is DIF?

What is DIF as highlighted here: https://archive.vn/Ls4cn#selection-1549.100-1549.103 ?

A web search didn't help much as I was not about to guess which of these it supposedly meant (if any): https://acronyms.thefreedictionary.com/DIF

Please at least define it once in the document, like HTML (HyperText Markup Language), or include a hyperlink to a page that defines what it is.

Thanks!

created time in 3 days

issue closedcosmos/ics

![IMG_1424](https://user-images.githubusercontent.com/61733802/105635026-70c38f80-5e93-11eb-91a8-4c1ffa0bb14f.jpg)

IMG_1424

Originally posted by @duc811997 in https://github.com/cosmos/ics/issues/317#issuecomment-766367876

closed time in 3 days

duc811997

issue openedAzure-Samples/active-directory-verifiable-credentials

TypeError: Key is not of type 'CryptoKey' at SubtleCryptoKeyVault.checkCryptoKey

The following line in /issuer/app.js breaks for me: req.session.issueRequest = await requestBuilder.build().create(); The error leads to the QR code not being generated. Any idea what's wrong? Seems like it's a bug in the SDK and something is going wrong with signing the request?

Full error log:

(node:62578) UnhandledPromiseRejectionWarning: TypeError: Key is not of type 'CryptoKey'
    at SubtleCryptoKeyVault.checkCryptoKey (/Users/mathiasklenk/passbase-dev/credential-issuer/node_modules/webcrypto-core/build/webcrypto-core.js:893:19)
    at SubtleCryptoKeyVault.sign (/Users/mathiasklenk/passbase-dev/credential-issuer/node_modules/webcrypto-core/build/webcrypto-core.js:762:14)
    at SubtleCryptoExtension.signByKeyStore (/Users/mathiasklenk/passbase-dev/credential-issuer/node_modules/verifiablecredentials-crypto-sdk-typescript-plugin/dist/lib/SubtleCryptoExtension.js:53:40)
    at JwsToken.sign (/Users/mathiasklenk/passbase-dev/credential-issuer/node_modules/verifiablecredentials-crypto-sdk-typescript-protocol-jose/dist/lib/jws/JwsToken.js:382:40)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async Jose.sign (/Users/mathiasklenk/passbase-dev/credential-issuer/node_modules/verifiablecredentials-crypto-sdk-typescript/dist/lib/Jose.js:52:23)
    at async Requestor.create (/Users/mathiasklenk/passbase-dev/credential-issuer/node_modules/verifiablecredentials-verification-sdk-typescript/dist/lib/api_oidc_request/Requestor.js:70:27)
    at async exports.issueRequest (/Users/mathiasklenk/passbase-dev/credential-issuer/src/controller/credentialIssuerController.js:76:30)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:62578) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:62578) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:62578) UnhandledPromiseRejectionWarning: TypeError: Key is not of type 'CryptoKey'
    at SubtleCryptoKeyVault.checkCryptoKey (/Users/mathiasklenk/passbase-dev/credential-issuer/node_modules/webcrypto-core/build/webcrypto-core.js:893:19)
    at SubtleCryptoKeyVault.sign (/Users/mathiasklenk/passbase-dev/credential-issuer/node_modules/webcrypto-core/build/webcrypto-core.js:762:14)
    at SubtleCryptoExtension.signByKeyStore (/Users/mathiasklenk/passbase-dev/credential-issuer/node_modules/verifiablecredentials-crypto-sdk-typescript-plugin/dist/lib/SubtleCryptoExtension.js:53:40)
    at JwsToken.sign (/Users/mathiasklenk/passbase-dev/credential-issuer/node_modules/verifiablecredentials-crypto-sdk-typescript-protocol-jose/dist/lib/jws/JwsToken.js:382:40)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async Jose.sign (/Users/mathiasklenk/passbase-dev/credential-issuer/node_modules/verifiablecredentials-crypto-sdk-typescript/dist/lib/Jose.js:52:23)
    at async Requestor.create (/Users/mathiasklenk/passbase-dev/credential-issuer/node_modules/verifiablecredentials-verification-sdk-typescript/dist/lib/api_oidc_request/Requestor.js:70:27)
    at async exports.issueRequest (/Users/mathiasklenk/passbase-dev/credential-issuer/src/controller/credentialIssuerController.js:76:30)

created time in 4 days

created tagdecentralized-identity/ion

tagv1.0.0

DID Method implementation using the Sidetree protocol on top of Bitcoin

created time in 6 days

release decentralized-identity/ion

v1.0.0

released time in 6 days

delete branch decentralized-identity/ion

delete branch : dependabot/npm_and_yarn/urijs-1.19.5

delete time in 6 days

PR closed decentralized-identity/ion

Bump urijs from 1.19.1 to 1.19.5 dependencies

Bumps urijs from 1.19.1 to 1.19.5. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/medialize/URI.js/releases">urijs's releases</a>.</em></p> <blockquote> <h2>1.19.5 (December 30th 2020)</h2> <ul> <li>dropping jquery.URI.js from minified bundle accidentally added since v1.19.3 - [Issue <a href="https://github-redirect.dependabot.com/medialize/URI.js/issues/404">#404</a>](<a href="https://github-redirect.dependabot.com/medialize/URI.js/issues/404">medialize/URI.js#404</a>)</li> </ul> <h2>1.19.4 (December 23rd 2020)</h2> <ul> <li><strong>SECURITY</strong> fixing <a href="http://medialize.github.io/URI.js/docs.html#static-parseAuthority"><code>URI.parseAuthority()</code></a> to rewrite <code></code> to <code>/</code> as Node and Browsers do - followed up to by <a href="https://github.com/alesandroortiz">alesandroortiz</a> in [PR <a href="https://github-redirect.dependabot.com/medialize/URI.js/issues/403">#403</a>](<a href="https://github-redirect.dependabot.com/medialize/URI.js/issues/403">medialize/URI.js#403</a>), relates to [Issue <a href="https://github-redirect.dependabot.com/medialize/URI.js/issues/233">#233</a>](<a href="https://github-redirect.dependabot.com/medialize/URI.js/pull/233">medialize/URI.js#233</a>)</li> </ul> <h2>1.19.3 (December 20th 2020)</h2> <ul> <li><strong>SECURITY</strong> fixing <a href="http://medialize.github.io/URI.js/docs.html#static-parseAuthority"><code>URI.parseAuthority()</code></a> to rewrite <code></code> to <code>/</code> as Node and Browsers do - disclosed privately by <a href="https://github.com/alesandroortiz">alesandroortiz</a>, relates to [Issue <a href="https://github-redirect.dependabot.com/medialize/URI.js/issues/233">#233</a>](<a href="https://github-redirect.dependabot.com/medialize/URI.js/pull/233">medialize/URI.js#233</a>)</li> </ul> <h2>1.19.2 (October 20th 2019)</h2> <ul> <li>fixing <a href="http://medialize.github.io/URI.js/docs.html#static-build"><code>URI.build()</code></a> to properly handle relative paths when a scheme is given - [Issue <a href="https://github-redirect.dependabot.com/medialize/URI.js/issues/387">#387</a>](<a href="https://github-redirect.dependabot.com/medialize/URI.js/issues/387">medialize/URI.js#387</a>)</li> <li>fixing <a href="http://medialize.github.io/URI.js/docs.html#static-buildQuery"><code>URI.buildQuery()</code></a> to properly handle empty param name - [Issue <a href="https://github-redirect.dependabot.com/medialize/URI.js/issues/243">#243</a>](<a href="https://github-redirect.dependabot.com/medialize/URI.js/issues/243">medialize/URI.js#243</a>), [PR <a href="https://github-redirect.dependabot.com/medialize/URI.js/issues/383">#383</a>](<a href="https://github-redirect.dependabot.com/medialize/URI.js/issues/383">medialize/URI.js#383</a>)</li> <li>support Composer [PR <a href="https://github-redirect.dependabot.com/medialize/URI.js/issues/386">#386</a>](<a href="https://github-redirect.dependabot.com/medialize/URI.js/issues/386">medialize/URI.js#386</a>)</li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/medialize/URI.js/blob/gh-pages/CHANGELOG.md">urijs's changelog</a>.</em></p> <blockquote> <h3>1.19.5 (December 30th 2020)</h3> <ul> <li>dropping jquery.URI.js from minified bundle accidentally added since v1.19.3 - [Issue <a href="https://github-redirect.dependabot.com/medialize/URI.js/issues/404">#404</a>](<a href="https://github-redirect.dependabot.com/medialize/URI.js/issues/404">medialize/URI.js#404</a>)</li> </ul> <h3>1.19.4 (December 23rd 2020)</h3> <ul> <li><strong>SECURITY</strong> fixing <a href="http://medialize.github.io/URI.js/docs.html#static-parseAuthority"><code>URI.parseAuthority()</code></a> to rewrite <code></code> to <code>/</code> as Node and Browsers do - followed up to by <a href="https://github.com/alesandroortiz">alesandroortiz</a> in [PR <a href="https://github-redirect.dependabot.com/medialize/URI.js/issues/403">#403</a>](<a href="https://github-redirect.dependabot.com/medialize/URI.js/issues/403">medialize/URI.js#403</a>), relates to [Issue <a href="https://github-redirect.dependabot.com/medialize/URI.js/issues/233">#233</a>](<a href="https://github-redirect.dependabot.com/medialize/URI.js/pull/233">medialize/URI.js#233</a>)</li> </ul> <h3>1.19.3 (December 20th 2020)</h3> <ul> <li><strong>SECURITY</strong> fixing <a href="http://medialize.github.io/URI.js/docs.html#static-parseAuthority"><code>URI.parseAuthority()</code></a> to rewrite <code></code> to <code>/</code> as Node and Browsers do - disclosed privately by <a href="https://github.com/alesandroortiz">alesandroortiz</a>, relates to [Issue <a href="https://github-redirect.dependabot.com/medialize/URI.js/issues/233">#233</a>](<a href="https://github-redirect.dependabot.com/medialize/URI.js/pull/233">medialize/URI.js#233</a>)</li> </ul> <h3>1.19.2 (October 20th 2019)</h3> <ul> <li>fixing <a href="http://medialize.github.io/URI.js/docs.html#static-build"><code>URI.build()</code></a> to properly handle relative paths when a scheme is given - [Issue <a href="https://github-redirect.dependabot.com/medialize/URI.js/issues/387">#387</a>](<a href="https://github-redirect.dependabot.com/medialize/URI.js/issues/387">medialize/URI.js#387</a>)</li> <li>fixing <a href="http://medialize.github.io/URI.js/docs.html#static-buildQuery"><code>URI.buildQuery()</code></a> to properly handle empty param name - [Issue <a href="https://github-redirect.dependabot.com/medialize/URI.js/issues/243">#243</a>](<a href="https://github-redirect.dependabot.com/medialize/URI.js/issues/243">medialize/URI.js#243</a>), [PR <a href="https://github-redirect.dependabot.com/medialize/URI.js/issues/383">#383</a>](<a href="https://github-redirect.dependabot.com/medialize/URI.js/issues/383">medialize/URI.js#383</a>)</li> <li>support Composer [PR <a href="https://github-redirect.dependabot.com/medialize/URI.js/issues/386">#386</a>](<a href="https://github-redirect.dependabot.com/medialize/URI.js/issues/386">medialize/URI.js#386</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/medialize/URI.js/commit/d7bb4ce8cb71caa5063a617b2afdb5a0a3685532"><code>d7bb4ce</code></a> chore(build): bumping to version 1.19.5</li> <li><a href="https://github.com/medialize/URI.js/commit/bf04ec5f053829f9ea3a887608bdfca4fd84cd64"><code>bf04ec5</code></a> chore(build): bumping to version 1.19.4</li> <li><a href="https://github.com/medialize/URI.js/commit/b02bf037c99ac9316b77ff8bfd840e90becf1155"><code>b02bf03</code></a> fix(parse): treat backslash as forwardslash in authority (<a href="https://github-redirect.dependabot.com/medialize/URI.js/issues/403">#403</a>)</li> <li><a href="https://github.com/medialize/URI.js/commit/d7064ab9acbbdf8d8acc35d9dc2454cf1606ff98"><code>d7064ab</code></a> chore(build): bumping to version 1.19.3</li> <li><a href="https://github.com/medialize/URI.js/commit/4f45fafedec9fea4d65c2562721ec94343a33c2b"><code>4f45faf</code></a> fix(parse): treat backslash as forwardslash in authority</li> <li><a href="https://github.com/medialize/URI.js/commit/594ffc1d1ba995d8e90814d6de18e1330d419be1"><code>594ffc1</code></a> chore(build): bumping to version 1.19.2</li> <li><a href="https://github.com/medialize/URI.js/commit/e780eebc0ddaea04a6928c0f7d54b061e541e05c"><code>e780eeb</code></a> chore: inform people of modern APIs</li> <li><a href="https://github.com/medialize/URI.js/commit/433f0e51e4028130a8685dfe49a185e982bc1f47"><code>433f0e5</code></a> chore(package): support Composer by adding composer.json</li> <li><a href="https://github.com/medialize/URI.js/commit/4ced30a1c5ad278eae70bb06dee8d7886e68052b"><code>4ced30a</code></a> fix(build): handle relative paths with missing authority</li> <li><a href="https://github.com/medialize/URI.js/commit/7168049bd2b9b0000ea1ea46108c46e22ef57a37"><code>7168049</code></a> fix(buildQuery): support params without key</li> <li>See full diff in <a href="https://github.com/medialize/URI.js/compare/v1.19.1...v1.19.5">compare view</a></li> </ul> </details> <br />

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


<details> <summary>Dependabot commands and options</summary> <br />

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

You can disable automated security fix PRs for this repo from the Security Alerts page.

</details>

+3 -3

1 comment

1 changed file

dependabot[bot]

pr closed time in 6 days

pull request commentdecentralized-identity/ion

Bump urijs from 1.19.1 to 1.19.5

Looks like urijs is up-to-date now, so this is no longer needed.

dependabot[bot]

comment created time in 6 days

delete branch decentralized-identity/ion

delete branch : henrytsai/v1.0.0

delete time in 6 days

push eventdecentralized-identity/ion

Henry Tsai

commit sha b26e892e829913b4f4c90a4969d83b5ad6cdffcb

v1.0.0

view details

push time in 6 days

PR merged decentralized-identity/ion

Reviewers
v1.0.0
+75 -64

0 comment

11 changed files

thehenrytsai

pr closed time in 6 days

PR opened decentralized-identity/ion

Reviewers
v1.0.0
+75 -64

0 comment

11 changed files

pr created time in 6 days

create barnchdecentralized-identity/ion

branch : henrytsai/v1.0.0

created branch time in 6 days

issue commentdecentralized-identity/ion

Conform to W3C did spec registries registration requirements

this issue could be closed by adding the required sections to the readme.

csuwildcat

comment created time in 10 days

issue commentdecentralized-identity/ion

Generate a DID Method specification document for reference in the W3C DID Method registry

ION remains one of the DID Methods that was added to https://w3c.github.io/did-spec-registries/ before we had a more rigorous registration process. If it were attempted today, it would be rejected, because it fails to meet the registration criteria for a did method, which are:

  1. description of did syntax
  2. description supported did operations (create, resole, update, deactivate)
  3. privacy and security considerations
csuwildcat

comment created time in 10 days

delete branch tendermint/starport

delete branch : chore/gitpod-workdir

delete time in 15 days

push eventtendermint/starport

Lucas Bertrand

commit sha 38d841e8860511caf3548122de148d92c00030c8

chore: change Gitpod prompt workdir (#636) * CHange workdir * Change checkout location * Test checkout * Change workdir * Change workdir * Change workdir

view details

push time in 15 days

issue closedtendermint/starport

Gitpod: launch default terminal in docs directory

So that when a user scaffolds a blockchain it becomes visible in the sidebar.

closed time in 15 days

fadeev

issue openedtendermint/starport

Dont' leave mnemonic default value to empty string, to prevent fresh create account each run "starport serve" command

https://github.com/tendermint/starport/blob/c1378834d4709ad4eebab6cf06ccbf6020e101ae/starport/services/chain/serve.go#L185

created time in 15 days

Pull request review commentcosmos/cosmos-sdk

Remove bech32 PubKey support

 func (i offlineInfo) GetPath() (*hd.BIP44Params, error) { 	return nil, fmt.Errorf("BIP44 Paths are not available for this type") } -type multisigPubKeyInfo struct {-	PubKey cryptotypes.PubKey `json:"pubkey"`-	Weight uint               `json:"weight"`-}- // multiInfo is the public information about a multisig key type multiInfo struct {-	Name      string               `json:"name"`-	PubKey    cryptotypes.PubKey   `json:"pubkey"`-	Threshold uint                 `json:"threshold"`-	PubKeys   []multisigPubKeyInfo `json:"pubkeys"`+	Name   string             `json:"name"`+	PubKey cryptotypes.PubKey `json:"pubkey"`

I will test it.

robert-zaremba

comment created time in 15 days

push eventcosmos/cosmos-sdk

Robert Zaremba

commit sha 84a0c210b0f327c8da0dad033775df8616f73e88

Update GetCmdQuerySigningInfo example

view details

push time in 15 days

Pull request review commentcosmos/cosmos-sdk

Remove bech32 PubKey support

 func TestMarshalAmino_BackwardsCompatibility(t *testing.T) { 		}) 	} }++// TODO - maybe we should move the tests below to `codec_test` package, WDYT?+func TestMarshalProto(t *testing.T) {+	require := require.New(t)+	ccfg := simapp.MakeTestEncodingConfig()+	privKey := ed25519.GenPrivKey()+	pk := privKey.PubKey()++	// **** test JSON serialization ****++	pkAny, err := codectypes.NewAnyWithValue(pk)+	require.NoError(err)+	bz, err := ccfg.Marshaler.MarshalJSON(pkAny)+	require.NoError(err)++	var pkAny2 codectypes.Any+	err = ccfg.Marshaler.UnmarshalJSON(bz, &pkAny2)+	require.NoError(err)+	// we before getting a cached value we need to unpack it.+	// Normally this happens in in types which implement UnpackInterfaces+	var pkI cryptotypes.PubKey+	err = ccfg.InterfaceRegistry.UnpackAny(&pkAny2, &pkI)+	require.NoError(err)+	var pk2 = pkAny2.GetCachedValue().(cryptotypes.PubKey)+	require.True(pk2.Equals(pk))++	// **** test binary serialization ****++	bz, err = ccfg.Marshaler.MarshalBinaryBare(pkAny)+	fmt.Println(bz)+	require.NoError(err)++	var pkAny3 codectypes.Any+	err = ccfg.Marshaler.UnmarshalBinaryBare(bz, &pkAny3)+	require.NoError(err)+	err = ccfg.InterfaceRegistry.UnpackAny(&pkAny3, &pkI)+	require.NoError(err)+	var pk3 = pkAny3.GetCachedValue().(cryptotypes.PubKey)+	require.True(pk3.Equals(pk))+}++func TestMarshalProto2(t *testing.T) {

I will use TestMarshalProto and TestMarshalProtoInterface. Feel free to share suggestions

robert-zaremba

comment created time in 15 days

Pull request review commentcosmos/cosmos-sdk

Remove bech32 PubKey support

 package keyring  import (+	"github.com/cosmos/cosmos-sdk/codec"+	cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" 	sdk "github.com/cosmos/cosmos-sdk/types" ) +// TODO: Move this file to client/keys+// Use protobuf interface marshaler rather then generic JSON+ // KeyOutput defines a structure wrapping around an Info object used for output // functionality. type KeyOutput struct {-	Name      string                 `json:"name" yaml:"name"`-	Type      string                 `json:"type" yaml:"type"`-	Address   string                 `json:"address" yaml:"address"`-	PubKey    string                 `json:"pubkey" yaml:"pubkey"`-	Mnemonic  string                 `json:"mnemonic,omitempty" yaml:"mnemonic"`-	Threshold uint                   `json:"threshold,omitempty" yaml:"threshold"`-	PubKeys   []multisigPubKeyOutput `json:"pubkeys,omitempty" yaml:"pubkeys"`+	Name     string `json:"name" yaml:"name"`+	Type     string `json:"type" yaml:"type"`+	Address  string `json:"address" yaml:"address"`+	PubKey   string `json:"pubkey" yaml:"pubkey"`+	Mnemonic string `json:"mnemonic,omitempty" yaml:"mnemonic"` }  // NewKeyOutput creates a default KeyOutput instance without Mnemonic, Threshold and PubKeys-func NewKeyOutput(name, keyType, address, pubkey string) KeyOutput {+func NewKeyOutput(name string, keyType KeyType, a sdk.Address, pk cryptotypes.PubKey) (KeyOutput, error) { // nolint:interfacer+	bz, err := codec.ProtoMarshalJSON(pk, nil)+	if err != nil {+		return KeyOutput{}, err+	} 	return KeyOutput{ 		Name:    name,-		Type:    keyType,-		Address: address,-		PubKey:  pubkey,-	}-}--type multisigPubKeyOutput struct {-	Address string `json:"address" yaml:"address"`-	PubKey  string `json:"pubkey" yaml:"pubkey"`-	Weight  uint   `json:"weight" yaml:"weight"`+		Type:    keyType.String(),+		Address: a.String(),+		PubKey:  string(bz),

Yes, but this is out of the scope. Main thing here was to change the PubKey type.

robert-zaremba

comment created time in 15 days

more