zkas: Rename "contract" to "witness".

This commit is contained in:
parazyd
2023-05-10 13:24:02 +02:00
parent 81a2f6a0fa
commit be9013ed31
30 changed files with 74 additions and 74 deletions

View File

@@ -1,6 +1,6 @@
constant "Arith" {}
contract "Arith" {
witness "Arith" {
Base a,
Base b,
}

View File

@@ -4,7 +4,7 @@ constant "Burn" {
EcFixedPointBase NULLIFIER_K,
}
contract "Burn" {
witness "Burn" {
Base secret,
Base serial,
Base value,

View File

@@ -2,7 +2,7 @@ constant "DeployContract" {
EcFixedPointBase NULLIFIER_K,
}
contract "DeployContract" {
witness "DeployContract" {
# Amount of bytes to store on-chain
Base bytes,
# Deploy key used for signing and contract reference

View File

@@ -7,7 +7,7 @@
constant "Encrypt" {}
contract "Encrypt" {
witness "Encrypt" {
# We are encrypting values to this public key
EcNiPoint pubkey,

View File

@@ -1,7 +1,7 @@
constant "InclusionProof" {
}
contract "InclusionProof" {
witness "InclusionProof" {
Base leaf,
Uint32 leaf_pos,
MerklePath path,

View File

@@ -4,7 +4,7 @@ constant "Lead" {
EcFixedPointBase NULLIFIER_K,
}
contract "Lead" {
witness "Lead" {
MerklePath c1_cm_path,
Uint32 c1_cm_pos,
Uint32 c1_sk_pos,

View File

@@ -4,7 +4,7 @@ constant "Mint" {
EcFixedPointBase NULLIFIER_K,
}
contract "Mint" {
witness "Mint" {
Base pub_x,
Base pub_y,
Base value,

View File

@@ -4,7 +4,7 @@ constant "Opcodes" {
EcFixedPointBase NULLIFIER_K,
}
contract "Opcodes" {
witness "Opcodes" {
Base value,
Scalar value_blind,

View File

@@ -4,7 +4,7 @@ constant "tx" {
EcFixedPointBase NULLIFIER_K,
}
contract "tx" {
witness "tx" {
# coin (1) witnesses
Base root,
Base c1_root_sk,

View File

@@ -4,7 +4,7 @@ constant "Vote" {
EcFixedPointBase NULLIFIER_K,
}
contract "Vote" {
witness "Vote" {
Base process_id_0,
Base process_id_1,
Base secret_key,