Extracts a profile from an encoded token and optionally verifies it,
if publicKeyOrAddress
is provided.
the token to be extracted
the public key or address of the keypair that is thought to have signed the token
Signs a profile token
the JSON of the profile to be signed
the signing private key
the entity that the information is about
the entity that is issuing the token
the signing algorithm to use
the time of issuance of the token
the time of expiration of the token
Verifies a profile token
the token to be verified
the public key or address of the keypair that is thought to have signed the token
Wraps a token for a profile token file
the token to be wrapped
token
and decodedToken
Generated using TypeDoc
@stacks/profile
Functions for manipulating user profiles.
Installation