π Create Script for FHE requests
To perform operations such as confidential token creation or transfer, you need to create request scripts. Use the following command to generate these scripts:
cargo run --release --bin request-scripts-gen
- This command will generate scripts that interact with Cyferio SDKβs FHE modules, specifically the sov_bank_fhe module.
- These scripts automate confidential token creation, minting, and transfer operations.
Example of an FHE Token Creation Script
Once youβve generated the request scripts, hereβs an example of how the token creation script might look:
// Confidential Token Creation
{
"CreateToken":{
"token_name":"sov-confidential-token",
"initial_balance": FHE_CIPHERTEXT,
"mint_to_address":"sov1l..94",
"authorized_minters":[
"sov1l..94",
"sov15..gc"
]
}
}
// Confidential Token Transfer
{
"Transfer":{
"to":"sov1l..94",
"coins":{
"amount": FHE_CIPHERTEXT,
"token_id":"token_1p..6l"
}
}
}