mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 15:27:05 +00:00
Updated Keypair (#27574)
* Updated Keypair https://stellar.github.io/js-stellar-sdk/Keypair.html#rawPublicKey * Updated xdr and Transaction https://github.com/stellar/js-stellar-base/blob/master/src/generated/stellar-xdr_generated.js * Fixed signatures signatures is an array of DecoratedSignatures not Signatures
This commit is contained in:
Vendored
+8
@@ -825,6 +825,7 @@ export class Transaction {
|
||||
fee: number;
|
||||
source: string;
|
||||
memo: Memo;
|
||||
signatures: xdr.DecoratedSignature[];
|
||||
}
|
||||
|
||||
export class TransactionBuilder {
|
||||
@@ -862,9 +863,11 @@ export class Keypair {
|
||||
|
||||
publicKey(): string;
|
||||
secret(): string;
|
||||
rawPublicKey(): Buffer;
|
||||
rawSecretKey(): Buffer;
|
||||
canSign(): boolean;
|
||||
sign(data: Buffer): Buffer;
|
||||
signatureHint(): xdr.SignatureHint;
|
||||
verify(data: Buffer, signature: Buffer): boolean;
|
||||
}
|
||||
|
||||
@@ -876,4 +879,9 @@ export namespace xdr {
|
||||
class Asset extends XDRStruct { }
|
||||
class Memo extends XDRStruct { }
|
||||
class TransactionEnvelope extends XDRStruct { }
|
||||
class DecoratedSignature extends XDRStruct {
|
||||
constructor(keys: { hint: SignatureHint, signature: Signature })
|
||||
}
|
||||
class SignatureHint { }
|
||||
class Signature { }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user