SBT隐私模块
隐私数据分享流程
加密
{
"encryptionBy": "lit-protocol",
"accessCondition": [
{
"contractAddress": "${contract address of Semantic SBT}",
"standardContractType": "ERC721",
"chain": "polygon",
"method": "isViewerOf",
"parameters": [
":userAddress",
"${tokenId}"
],
"returnValueTest": {
"comparator": "=",
"value": true
}
}
],
"encryptedSymmetricKey": "a hex string that LIT will use to decrypt your content as long as you satisfy the conditions",
// encrypted content
"encryptedObject": "AhgXUao1QU2iQg34UsCw0-ptkoy_fhifEoqEs3_Zj1s="
}
Mint隐私SBT
解密
Access Control Conditions Types
User holds an NFT in a collection
User holds an SBT in a collection
User owns a specific wallet address
User holds at least XX ERC20 Token
Using boolean operations (AND + OR) for any of the above
Last updated