Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose "append signature" utility #165

Open
0x009922 opened this issue May 15, 2023 · 0 comments
Open

Expose "append signature" utility #165

0x009922 opened this issue May 15, 2023 · 0 comments
Labels
enhancement iroha2 package: client Related to Client package(-s)

Comments

@0x009922
Copy link
Contributor

Description

Appending signature to an existing SignedTransaction is a common operation for multisignature workflows.

The API should look like this:

import { Signer, appendTransactionSignature } from '@iroha2/client'
import { datamodel } from '@iroha2/data-model'

/** @type {datamodel.VersionedSignedTransaction} */
let tx

tx = appendTransactionSignature(tx, keypair)

// or through `Signer`
tx = new Signer(keypair).appendTransactionSignature(tx)
@0x009922 0x009922 added enhancement iroha2 package: client Related to Client package(-s) labels May 15, 2023
@0x009922 0x009922 self-assigned this May 19, 2023
@0x009922 0x009922 removed their assignment Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement iroha2 package: client Related to Client package(-s)
Projects
None yet
Development

No branches or pull requests

1 participant