Skip to content

Change the interface of signature #269

@joojis

Description

@joojis

Currently, either string (r,s,v encoded) or interface { r: string, s: string, v: number } is used, including sign() in the keystore.

We need to sort this out.

primitives

interface EcdsaSignature {
    r: string;
    s: string;
    v: number;
}

signEcdsa()
verifyEcdsa()
recoverEcdsa()

interface SchnorrSignature {
    r: string;
    s: string;
}

signSchnorr()
verifySchnorr()
recoverSchnorr()

keystore

sign(...): string

SDK

SDK.Rpc.account.sign(...): string
SignedParcel.convertRsvToSignatureString()

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions