MetaAccess
Introduction
Spec
AccessControl
{
"publicContent": "public part of content", // Public portion of the content
"publicPins": ["PINID-1", "PINID-2"], // Public files
"publicPath": "/protocols/simplepublicbuzz",
"controlPins": ["PINID1", "PINID2"], // Array of PINs that require access control
"controlPath": "/protocols/simpleasseccbuzz", // Path controlling access to the specified PINs
"manDomain": "", // To be defined
"manPubkey": "THE-PUBKEY-OF-MAN", // Public key of the MAN node providing decryption services
"creatorPubkey": "THE-PUBKEY-OF-CREATOR", // Creator's public key
"encryptedKey": "Use the ECDH Key to Decrypt it and use that decrypted key to decrypt the content",
"holdCheck": { // Hold check
"type": "mrc20", // "chainCoin" or "mrc20"
"ticker": "mc", // Ticker for mrc20; ignored if type is "chainCoin"
"amount": "1000"
},
"payCheck": { // Pay check
"type": "chainCoin", // "chainCoin" or "mrc20"
"ticker": "",
"amount": "0.00001",
"payTo": "address",
"validPeriod": "4320" // Blocks; 4320 represents 1 month
}
}AccessPass
Workflow
ECDH Configuration
Symmetric Encryption Configuration (AES)
Go Code Example
Last updated