Secp256k1. Extrakeys
(secp256k1 v0.7.2)
View Source
Module implementing extrakeys functions of secp256k1
Summary
Functions
Derive xonly pubkey from seckey
Functions
@spec xonly_pubkey(Secp256k1.seckey()) :: Secp256k1.xonly_pubkey()
Derive xonly pubkey from seckey
Examples
iex> {seckey, _} = Secp256k1.keypair(:compressed)
iex> xonly = Secp256k1.Extrakeys.xonly_pubkey(seckey)
iex> byte_size(xonly)
32