Skip to content

what is the P2WPKH_WITNESS_EXAMPLE meaning?needs/bridge #2182

@LXHLeaner

Description

@LXHLeaner
/**
 * A P2PKH witness example for estimating txn size before signing transaction.
 */
const P2WPKH_WITNESS_EXAMPLE: Witness = {
  scripts: [
    { hex: '3044022000000000000000000000000000000000000000000000000000000000000000000220000000000000000000000000000000000000000000000000000000000000000001' },
    { hex: '000000000000000000000000000000000000000000000000000000000000000000' }
  ]
}

Are the first 30440220 and the middle 22 fixed values? What is the signature algorithm we use?

### Tasks

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions