Skip to content

consider changing some SignatureTemplate methods to properties #308

Open
@mr-zwets

Description

@mr-zwets

Currently SignatureTemplate has a method .getPublicKey() and getSignatureAlgorithm() but these could as well be a property because they do not accept any arguments.

In v0.8.0 we replaced a contract method to a property

BREAKING: Replace contract.getRedeemScriptHex() with contract.bytecode.

so this could have similar reasoning.

If getPublicKey() would accept an HD node path then it would make sense as a method I think, but the current API doesn't seem consistent

Metadata

Metadata

Assignees

No one assigned

    Labels

    breakingbreaking changejavascript-sdkRelates to the CashScript JavaScript SDK

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions