From fc1247301cec087154d3f7f6dc5a6e53fb1cd570 Mon Sep 17 00:00:00 2001 From: JFGHT Date: Mon, 30 Jul 2018 17:38:45 +0200 Subject: [PATCH] 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 --- types/stellar-sdk/index.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/types/stellar-sdk/index.d.ts b/types/stellar-sdk/index.d.ts index d07309eae5..3f963ab18d 100644 --- a/types/stellar-sdk/index.d.ts +++ b/types/stellar-sdk/index.d.ts @@ -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 { } }