biscuitMint : ( privateKey : any , prepare : any , ) => Promise < | { error : any ; ok : boolean ; revocationIds ?: undefined ; stage : string ; value ?: undefined ; } | { error ?: undefined ; ok : boolean ; revocationIds : string [] ; stage ?: undefined ; value : any ; } , > = biscuitMint
Type Declaration
( privateKey : any , prepare : any , ) : Promise < | { error : any ; ok : boolean ; revocationIds ?: undefined ; stage : string ; value ?: undefined ; } | { error ?: undefined ; ok : boolean ; revocationIds : string [] ; stage ?: undefined ; value : any ; } , >
Parameters
privateKey : any
prepare : any
Returns Promise < | { error : any ; ok : boolean ; revocationIds ?: undefined ; stage : string ; value ?: undefined ; } | { error ?: undefined ; ok : boolean ; revocationIds : string [] ; stage ?: undefined ; value : any ; } , > a promise of { ok: true, value, revocationIds }, or
{ ok: false, stage, error } — stage key (not an Ed25519 private
KeyObject), load (the library could not be loaded) or library
Defined in common/crypto.js:18195
Mints a biscuit whose authority block is the caller's Datalog, sealed with an Ed25519 root key.
prepare()builds the block ({ source, params }); it is called inside the library step, so a throw from it is answered as the library's.