|
14 | 14 | // You should have received a copy of the GNU General Public License
|
15 | 15 | // along with the Provable SDK library. If not, see <https://www.gnu.org/licenses/>.
|
16 | 16 |
|
17 |
| -pub const CREDITS_RECORD: &str = r"{ |
| 17 | +/// V1 credits.aleo record. |
| 18 | +pub const CREDITS_RECORD_V1: &str = "{ owner: aleo12a4wll9ax6w5355jph0dr5wt2vla5sss2t4cnch0tc3vzh643v8qcfvc7a.private, microcredits: 1000000u64.private, _nonce: 3634848344765318974603121890869676775499130077229666060613233255327643175219group.public, _version: 1u8.public }"; |
| 19 | +/// Record view key for the V1 credits.aleo record. |
| 20 | +pub const CREDITS_RECORD_VIEW_KEY: &str = |
| 21 | + "5237002936265850807349726649400053591020997883662246784632368923777787639801field"; |
| 22 | +/// Sender ciphertext of the credits.aleo record. |
| 23 | +pub const CREDITS_SENDER_CIPHERTEXT: &str = |
| 24 | + "1182590395568997043375432557467567048762179115999922880321493200728848194550field"; |
| 25 | +/// Sender plaintext of the credits.aleo record. |
| 26 | +pub const CREDITS_SENDER_PLAINTEXT: &str = "aleo1j92w9mhqznj2hvufad796y8suykjppk7f6n6xmncmktfm95vggzqx4sjlh"; |
| 27 | + |
| 28 | +/// Token registry record view_key. |
| 29 | +pub const TOKEN_REGISTRY_RECORD_OWNER_VIEW_KEY: &str = "AViewKey1pTzjTxeAYuDpACpz2k72xQoVXvfY4bJHrjeAQp6Ywe5g"; |
| 30 | + |
| 31 | +/// Token registry test vector. |
| 32 | +pub const TOKEN_REGISTRY_RECORD_V1: &str = r#"{ |
| 33 | + owner: aleo1s3ws5tra87fjycnjrwsjcrnw2qxr8jfqqdugnf0xzqqw29q9m5pqem2u4t.private, |
| 34 | + amount: 1000u128.private, |
| 35 | + token_id: 1751493913335802797273486270793650302076377624243810059080883537084141842600field.private, |
| 36 | + external_authorization_required: false.private, |
| 37 | + authorized_until: 0u32.private, |
| 38 | + _nonce: 353510505137682717871934563523691055502582931368477380633253282125012046603group.public, |
| 39 | + _version: 1u8.public |
| 40 | + }"#; |
| 41 | + |
| 42 | +/// Valid credits.aleo record for testing. |
| 43 | +pub const VALID_CREDITS_RECORD: &str = r"{ |
18 | 44 | owner: aleo1j7qxyunfldj2lp8hsvy7mw5k8zaqgjfyr72x2gh3x4ewgae8v5gscf5jh3.private,
|
19 | 45 | microcredits: 1500000000000000u64.private,
|
20 | 46 | _nonce: 3077450429259593211617823051143573281856129402760267155982965992208217472983group.public,
|
21 | 47 | _version: 0u8.public
|
22 | 48 | }";
|
| 49 | + |
| 50 | +/// Invalid credits.aleo record for testing. |
23 | 51 | pub const INVALID_CREDITS_RECORD: &str = r"{
|
24 | 52 | owner: aleo1j7qxyunfldj2lp8hsvy7mw5k8zaqgjfyr72x2gh3x4ewgae8v5gscf5jh3.private,
|
25 | 53 | microcredits: 1400000000000000u64.private,
|
|
0 commit comments