package
1.2.17
Repository: https://github.com/hubmakerlabs/replicatr.git
Documentation: pkg.go.dev

# Functions

ConvertForBech32 performs the bit expansion required for encoding into Bech32.
ConvertFromBech32 collapses together the bit expanded 5 bit numbers encoded in bech32.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
HexToNsec converts a hex encoded secret key to a bech32 encoded nsec.
HexToPublicKey decodes a string that should be a 64 character long hex encoded public key into a ec.PublicKey that can be used to verify a signature or encode to Bech32.
HexToSecretKey decodes a string that should be a 64 character long hex encoded public key into a ec.PublicKey that can be used to verify a signature or encode to Bech32.
NpubToPublicKey decodes an nostr public key (npub) and returns an secp256k1 public key.
No description provided by the author
NsecToSecretKey decodes a nostr secret key (nsec) and returns the secp256k1 secret key.
PublicKeyToNpub encodes a public key as a bech32 string (npub).
SecretKeyToHex converts a secret key to the hex encoding.
SecretKeyToNsec encodes an secp256k1 secret key as a Bech32 string (nsec).

# Constants

No description provided by the author
No description provided by the author
MinKeyStringLen is 56 because Bech32 needs 52 characters plus 4 for the HRP, any string shorter than this cannot be a nostr key.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author