Skip to content

Add addrToPkhHex? #18

@coolaj86

Description

@coolaj86

Since the internal implementation is hex, and the JSON representation is hex (not Uint8Array), which is also what DashTx needs, perhaps we should expose the method for getting Hex directly rather than deconverting back to Hex from Bytes.

let pkhBytes = await DashKeys.addrToPkh(output.address);
output.pubKeyHash = DashKeys.utils.bytesToHex(pkhBytes);

See also:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions