Open longtomjr opened 2 years ago
Authorization Data Struct:
Name | Type | Description | How |
---|---|---|---|
redeemed | bool | Confirmation that the DRT have been redeemed correctly | Check destination address is same as reserve address of the DRT - check txn receiver is same as reserve address on DRT |
drt_creator | Algorand Address | The Address or other cryptographic identifier that indicates who created the DRT | Get management address from asset_id |
drt_redeemer | [u8;32] | The public key of the party that redeemed the DRT | From txn_id, lookup account of receiver to get public key |
executable_hash | hash (sha512_256) | Information encoded in the DRT | From asset_id, find creation transaction, take note hashes |
data_package_hash | hash (sha512_256) | ||
executable_url | &str | ||
data_package_url | &str |
Signed Authorization Data Struct:
Name | Type | Description | How |
---|---|---|---|
signature | byteArray | Sign Auth Data | Use private key of oracle node (can be stored as env variable) and sign serialized authdata value |
auth_data | AuthData |
Functions: get_auth_data(txn_id, asset_id) -> AuthData sign_auth_data(auth_data) -> SignedAuthData
Tasks
Implementation Plan