Skip to content

bitcoinjs-lib / toXOnly

Function: toXOnly() ​

toXOnly(pubKey): Uint8Array

Defined in: ts_src/psbt/bip371.ts:35

Converts a public key to an X-only public key.

Parameters ​

pubKey ​

Uint8Array

The public key to convert.

Returns ​

Uint8Array

The X-only public key.

Released under the MIT License.