# Functions
BytesToPubKey converts bytes to a PubKey given a key type.
CreateDIDKeyByPubKey creates a did:key ID using the given public key.
CreateDIDKeyIDByPubKey creates a DID key ID using the given public key.
Decode converts a byte slice from a specified encoding to a string.
DerefOrDefault returns the value of the pointer if it is not nil, otherwise returns the default value.
Encode converts a string to a slice of bytes in a specified encoding.
Hash hashes the given data using the given algorithm.
HashAlgNames returns a list of possible string values of HashAlg.
Indexed returns a function that applies the given function to the given item and returns the result.
IsNil returns true if the given value is nil, false otherwise.
KeyAlgNames returns a list of possible string values of KeyAlg.
Map applies the given function to each element of the given slice and returns a new slice with the results.
NewBoundedBuffer creates a new BoundedBuffer with the given fixed size.
NewBoundedBufferMust is like NewBoundedBuffer but panics if an error occurs.
NonZeroOrDefault returns the value of the argument if it is not nil and not zero, otherwise returns the default value.
ParseHashAlg attempts to convert a string to a HashAlg.
ParseKeyAlg attempts to convert a string to a KeyAlg.
ParseURLMust parses the given url and panics if it fails.
QueryInterpreter interprets a query and returns the solutions up to the given limit.
URLMatches is a function that returns a function that matches the given url against the given other item.
VerifySignature verifies the signature of the given message with the given public key using the given algorithm.
WhitelistBlacklistMatches returns a function that matches the given item according to the given whitelist and blacklist returning true if the item matches the whitelist and does not match the blacklist, and false otherwise.
# Constants
No description provided by the author
No description provided by the author
HashAlgMd5 is a HashAlg of type Md5.
HashAlgSha256 is a HashAlg of type Sha256.
HashAlgSha512 is a HashAlg of type Sha512.
KeyAlgEd25519 is a KeyAlg of type Ed25519.
KeyAlgSecp256k1 is a KeyAlg of type Secp256k1.
KeyAlgSecp256r1 is a KeyAlg of type Secp256r1.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
BoundedBuffer is a fixed size buffer that overwrites older data when the buffer is full.
# Type aliases
HashAlg is the type of hash algorithm supported by the crypto util functions.
KeyAlg is the type of key algorithm supported by the crypto util functions.
No description provided by the author