Skip to content

Confirm deposit script pospubkey params and validation #16

Description

@Rygoatei

I noticed that the validation buffer length for the pospubkey provided by others is 33 (hex is 66). The example code I was given uses a posaddress with a 42-byte address length. I need to confirm parameter validation and the correct parameter values for deposit script.

Reference:

if (posPubkey.length !== PK_LENGTH) {
throw new Error("Invalid public key length");
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions