A lightweight token-authority for experimenting with the KRNL ecosystem.
go run main.go
Generates two key pairs and saves them into secrets.json
. It signs the secret and returns it to the user as an accessToken
with the public key of the token authority which should be used for smart-contract deployments. Note: each call generates a new key pair.
{
"dappName": "<the name of the dapp>"
}
{
"accessToken": "<signed dapp name as access token>",
"tokenAuthorityPublicKey" : "<token auth public key>"
}
Generates the signatureToken
, by signing the passed message
if the provided accessToken
is valid.
{
"accessToken": "<access token from the register dapp call>",
"message": "<requested FaaS functionalities>"
}
{
"signatureToken": "<signed message>"
}