Skip to content

Commit

Permalink
chore: rebase + rebuild noir
Browse files Browse the repository at this point in the history
  • Loading branch information
LHerskind committed Sep 8, 2023
1 parent cdfec05 commit dac4a7d
Show file tree
Hide file tree
Showing 7 changed files with 143 additions and 140 deletions.
6 changes: 1 addition & 5 deletions yarn-project/aztec.js/src/abis/ecdsa_account_contract.json

Large diffs are not rendered by default.

6 changes: 1 addition & 5 deletions yarn-project/aztec.js/src/abis/schnorr_account_contract.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,7 @@
}
}
],
<<<<<<< HEAD
"bytecode": "H4sIAAAAAAAA/9Xd124bRxQG4GURqeWqWb1a1WpWpySr2aZc4nYTIG8QQwkC5CpxLvJMeYPc5c2iGe9v/RrTCwI+A/4cQODuDjXnOzOzwyJqmSVJUko+l8rtTzX5uqC+ld8efF85LNm1dRDTWe4RZ8XQWcrnQUxvNUK/Whv7esBYMx53GLEG1G9/+m9/0tufRnJX/it/vnXH+/JjmDMp/X6ZjlWCPkipHqVG2y2bvJo1+34/6Mv9Cd1yvkN5LnXbuIfcR9Xk/jhhDFA/SLfuWL9xH4S5Yx4gToMsuF+sPmm0cdTJkdI2HJmt48i1MdDGkVFsxB8gx6Cto5kGDldKwX6LtgfJMmRr8XNkmGLBNUR9M0zxcTts6/DPN4aC/LHPvk6taQ9ZG122xphXrs0R2zaP0uR+n7pSdN6MUH4PbC1NN55u/cK4ov2wb8tkiLG+j1G+iMnr+2i+PUaOcVuHHxd2uFI0LuNkmbC1+D6ZpFhwIU5G9VVyTNo6/Hk3EeSPffZ1ah3tsjXWGmGci5+LnIsrRXOR85sytmCNwLiiffQjnLHXiBnKFzF5jZjOt2fIMWvcF2ngcKVoXGbJMmdr8X0yT7HgQpyM6nls5m0d/rybC/LHPvs6tU532RphrI5dmwu2bfq5yH3qStFcXKD8HhpbsEZgXNF+2Lex14glyhcxeY1YzLeXyLFs3Bdp4HClaFyWybJia/F9skqxlvJbxMmovkKOVVuHP+9Wgvyxz75OrYtdtkY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wv6WLN/ZWvw/C31PseBCnIy2898sfG/r8OPzXZA/1tk3qPXVEFm/Kdnq4sa4R5NxLv7eCpyLa0XHDef3g63ly33cMK7oH3WEs0KGGPdWeEv5IibfW+HHfPktOX6ydSymgcO1onH5iSzvbC2+Ju8pFlyIk9F2/r+k3ts6/HH3Lsgf6+wb1Lo0RNYrQ2T9sWRrSs+9pecqgdnNNS1ab1C/H2i5Tjkm+XveB69z7121zdVf07DDtaI5YJUsa7aWjov7M/Xfoxgc95Nt3HmOO5L/IAaer9LyJ1z40utce5c/wuzG8GOf1/Hyh+A9GW3/GDnnNXL0aB2x3GeNHyjXj33cGT1i+3tyN43dro9VciA+4qRB3fBovK/6+n0M6od1HstGUK8Ilm7WJ3aarNcG9XLjOUc2NL7WqUaoUxLUCa3axzJSsuX//U1zNagVz/XY5ubwf9PfNNf6vAevrSVfv45zr0fIneP0aB2x+G+VawKWSh9Lw9birzsxdyTJxnuFwQET3xdq1Lgmro+0j2OUHDzHwdGydfhfw+1377QWPSI+3/fI+DNSNw0crhUdv3zfo7atxe8j4xQLrjatYzvfU23c1uGPm3aQP9bZN6i1OUTWtGRrhP3qZ9fnFts+/XctXFPXio4bvhfVVlvLl+9aMK7oP6wtX3/EmN8n1tPdMJ6u8b838+uwXKPtfL7H9n9V13NyfU7a+v14ssu1ovFEfHfewJz4ae2XF2urf1v7ZXntnyPUx0SQV4X6qdMyzxMxxmeaYvF9t1zj39mYpm0xzr8zfRx8/kV8vC6lZf6/bmYDL18r8ntxbsXrm3luNdvcuhwLrWgfqlHutA+t/OPDX/+yGuxD6Lfap1++7q0Hr+Oa8PVV6DIb4AYBKzmklgdv9Em+mRfAQVu0/b82PdKy1bEAAA==",
"verificationKey": "0000000200000800000000740000000f00000003515f3109623eb3c25aa5b16a1a79fd558bac7a7ce62c4560a8c537c77ce80dd339128d1d37b6582ee9e6df9567efb64313471dfa18f520f9ce53161b50dbf7731bc5f900000003515f322bc4cce83a486a92c92fd59bd84e0f92595baa639fc2ed86b00ffa0dfded2a092a669a3bdb7a273a015eda494457cc7ed5236f26cee330c290d45a33b9daa94800000003515f332729426c008c085a81bd34d8ef12dd31e80130339ef99d50013a89e4558eee6d0fa4ffe2ee7b7b62eb92608b2251ac31396a718f9b34978888789042b790a30100000003515f342be6b6824a913eb7a57b03cb1ee7bfb4de02f2f65fe8a4e97baa7766ddb353a82a8a25c49dc63778cd9fe96173f12a2bc77f3682f4c4448f98f1df82c75234a100000003515f351f85760d6ab567465aadc2f180af9eae3800e6958fec96aef53fd8a7b195d7c000c6267a0dd5cfc22b3fe804f53e266069c0e36f51885baec1e7e67650c62e170000000c515f41524954484d455449430d9d0f8ece2aa12012fa21e6e5c859e97bd5704e5c122064a66051294bc5e04213f61f54a0ebdf6fee4d4a6ecf693478191de0c2899bcd8e86a636c8d3eff43400000003515f43224a99d02c86336737c8dd5b746c40d2be6aead8393889a76a18d664029096e90f7fe81adcc92a74350eada9622ac453f49ebac24a066a1f83b394df54dfa0130000000c515f46495845445f42415345060e8a013ed289c2f9fd7473b04f6594b138ddb4b4cf6b901622a14088f04b8d2c83ff74fce56e3d5573b99c7b26d85d5046ce0c6559506acb7a675e7713eb3a00000007515f4c4f4749430721a91cb8da4b917e054f72147e1760cfe0ef3d45090ac0f4961d84ec1996961a25e787b26bd8b50b1a99450f77a424a83513c2b33af268cd253b0587ff50c700000003515f4d05dbd8623b8652511e1eb38d38887a69eceb082f807514f09e127237c5213b401b9325b48c6c225968002318095f89d0ef9cf629b2b7f0172e03bc39aacf6ed800000007515f52414e474504b57a3805e41df328f5ca9aefa40fad5917391543b7b65c6476e60b8f72e9ad07c92f3b3e11c8feae96dedc4b14a6226ef3201244f37cfc1ee5b96781f48d2b000000075349474d415f3125001d1954a18571eaa007144c5a567bb0d2be4def08a8be918b8c05e3b27d312c59ed41e09e144eab5de77ca89a2fd783be702a47c951d3112e3de02ce6e47c000000075349474d415f3223994e6a23618e60fa01c449a7ab88378709197e186d48d604bfb6931ffb15ad11c5ec7a0700570f80088fd5198ab5d5c227f2ad2a455a6edeec024156bb7beb000000075349474d415f3300cda5845f23468a13275d18bddae27c6bb189cf9aa95b6a03a0cb6688c7e8d829639b45cf8607c525cc400b55ebf90205f2f378626dc3406cc59b2d1b474fba000000075349474d415f342d299e7928496ea2d37f10b43afd6a80c90a33b483090d18069ffa275eedb2fc2f82121e8de43dc036d99b478b6227ceef34248939987a19011f065d8b5cef5c0000000010000000000000000100000002000000030000000400000005000000060000000700000008000000090000000a0000000b0000000c0000000d0000000e0000000f"
},
{
Expand Down
11 changes: 9 additions & 2 deletions yarn-project/end-to-end/src/e2e_token_contract.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,14 @@ import {
AztecAddress,
computeMessageSecretHash,
} from '@aztec/aztec.js';
import { CircuitsWasm, CompleteAddress, Fr, FunctionSelector, GeneratorIndex, PrivateKey } from '@aztec/circuits.js';
import {
CircuitsWasm,
CompleteAddress,
Fr,
FunctionSelector,
GeneratorIndex,
GrumpkinScalar,
} from '@aztec/circuits.js';
import { pedersenPlookupCompressWithHashIndex } from '@aztec/circuits.js/barretenberg';
import { DebugLogger } from '@aztec/foundation/log';
import { SchnorrAuthWitnessAccountContract, TokenContract } from '@aztec/noir-contracts/types';
Expand Down Expand Up @@ -68,7 +75,7 @@ describe('e2e_token_contract', () => {
{
const _accounts = [];
for (let i = 0; i < 3; i++) {
const privateKey = PrivateKey.random();
const privateKey = GrumpkinScalar.random();
const account = new Account(aztecRpcServer, privateKey, new AuthWitnessAccountContract(privateKey));
const deployTx = await account.deploy();
await deployTx.wait({ interval: 0.1 });
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,61 @@
mod util;
mod auth_oracle;
mod storage;

contract SchnorrAuthWitnessAccount {
use dep::std::hash::pedersen_with_separator;
use dep::aztec::entrypoint::EntrypointPayload;
use dep::aztec::constants_gen::GENERATOR_INDEX__SIGNATURE_PAYLOAD;
use dep::std::option::Option;
use dep::aztec::oracle::compute_selector::compute_selector;
use dep::std::{
hash::pedersen_with_separator,
option::Option,
};

use dep::aztec::{
entrypoint::EntrypointPayload,
constants_gen::GENERATOR_INDEX__SIGNATURE_PAYLOAD,
oracle::compute_selector::compute_selector,
context::{
PrivateContext,
PublicContext
},
state_vars::{
map::Map,
public_state::PublicState,
},
types::type_serialisation::{
field_serialisation::{
FieldSerialisationMethods,
FIELD_SERIALISED_LEN,
}
}
};

use crate::util::recover_address;
use crate::auth_oracle::get_auth_witness;
use crate::storage::Storage;

struct Storage {
approved_action: Map<PublicState<Field, FIELD_SERIALISED_LEN>>,
}

impl Storage {
fn init(
private_context: Option<&mut PrivateContext>,
public_context: Option<&mut PublicContext>,
) -> pub Self {
Storage {
approved_action: Map::new(
private_context,
public_context,
1,
|private_context, public_context, slot| {
PublicState::new(
private_context,
public_context,
slot,
FieldSerialisationMethods,
)
},
),
}
}
}

#[aztec(private)]
fn constructor() {}
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
mod storage;
mod types;
mod account_interface;
mod util;
Expand All @@ -12,24 +11,100 @@ mod util;
contract Token {
// Libs
use dep::std::option::Option;

use dep::safe_math::SafeU120;

use dep::value_note::{
balance_utils,
utils::{increment, decrement},
value_note::{VALUE_NOTE_LEN, ValueNoteMethods},
value_note::{VALUE_NOTE_LEN, ValueNoteMethods, ValueNote},
};

use dep::aztec::{
note::{
note_header::NoteHeader,
utils as note_utils,
},
context::{PrivateContext, PublicContext},
state_vars::{map::Map, public_state::PublicState, set::Set},
types::type_serialisation::field_serialisation::{
FieldSerialisationMethods, FIELD_SERIALISED_LEN,
},
oracle::compute_selector::compute_selector,
};
use dep::aztec::oracle::compute_selector::compute_selector;
use crate::storage::Storage;
use crate::types::{AztecAddress, TransparentNote, TransparentNoteMethods};

use crate::types::{AztecAddress, TransparentNote, TransparentNoteMethods, TRANSPARENT_NOTE_LEN};
use crate::account_interface::AccountContract;
use crate::util::compute_message_hash;



struct Storage {
admin: PublicState<Field, FIELD_SERIALISED_LEN>,
minters: Map<PublicState<Field, FIELD_SERIALISED_LEN>>,
balances: Map<Set<ValueNote, VALUE_NOTE_LEN>>,
total_supply: PublicState<Field, FIELD_SERIALISED_LEN>,
pending_shields: Set<TransparentNote, TRANSPARENT_NOTE_LEN>,
public_balances: Map<PublicState<Field, FIELD_SERIALISED_LEN>>,
}

impl Storage {
fn init(
private_context: Option<&mut PrivateContext>,
public_context: Option<&mut PublicContext>,
) -> pub Self {
Storage {
admin: PublicState::new(
private_context,
public_context,
1,
FieldSerialisationMethods,
),
minters: Map::new(
private_context,
public_context,
2,
|private_context, public_context, slot| {
PublicState::new(
private_context,
public_context,
slot,
FieldSerialisationMethods,
)
},
),
balances: Map::new(
private_context,
public_context,
3,
|private_context, public_context, slot| {
Set::new(private_context, public_context, slot, ValueNoteMethods)
},
),
total_supply: PublicState::new(
private_context,
public_context,
4,
FieldSerialisationMethods,
),
pending_shields: Set::new(private_context, public_context, 5, TransparentNoteMethods),
public_balances: Map::new(
private_context,
public_context,
6,
|private_context, public_context, slot| {
PublicState::new(
private_context,
public_context,
slot,
FieldSerialisationMethods,
)
},
),
}
}
}

#[aztec(private)]
fn constructor() {
// Currently not possible to execute public calls from constructor as code not yet available to sequencer.
Expand Down
Loading

0 comments on commit dac4a7d

Please sign in to comment.