mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-08 22:28:12 -05:00
zkas: Rename "contract" to "witness".
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
constant "Arith" {}
|
||||
|
||||
contract "Arith" {
|
||||
witness "Arith" {
|
||||
Base a,
|
||||
Base b,
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ constant "Burn" {
|
||||
EcFixedPointBase NULLIFIER_K,
|
||||
}
|
||||
|
||||
contract "Burn" {
|
||||
witness "Burn" {
|
||||
Base secret,
|
||||
Base serial,
|
||||
Base value,
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
constant "Encrypt" {}
|
||||
|
||||
contract "Encrypt" {
|
||||
witness "Encrypt" {
|
||||
# We are encrypting values to this public key
|
||||
EcNiPoint pubkey,
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
constant "InclusionProof" {
|
||||
}
|
||||
|
||||
contract "InclusionProof" {
|
||||
witness "InclusionProof" {
|
||||
Base leaf,
|
||||
Uint32 leaf_pos,
|
||||
MerklePath path,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -4,7 +4,7 @@ constant "Mint" {
|
||||
EcFixedPointBase NULLIFIER_K,
|
||||
}
|
||||
|
||||
contract "Mint" {
|
||||
witness "Mint" {
|
||||
Base pub_x,
|
||||
Base pub_y,
|
||||
Base value,
|
||||
|
||||
@@ -4,7 +4,7 @@ constant "Opcodes" {
|
||||
EcFixedPointBase NULLIFIER_K,
|
||||
}
|
||||
|
||||
contract "Opcodes" {
|
||||
witness "Opcodes" {
|
||||
Base value,
|
||||
Scalar value_blind,
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ constant "tx" {
|
||||
EcFixedPointBase NULLIFIER_K,
|
||||
}
|
||||
|
||||
contract "tx" {
|
||||
witness "tx" {
|
||||
# coin (1) witnesses
|
||||
Base root,
|
||||
Base c1_root_sk,
|
||||
|
||||
@@ -4,7 +4,7 @@ constant "Vote" {
|
||||
EcFixedPointBase NULLIFIER_K,
|
||||
}
|
||||
|
||||
contract "Vote" {
|
||||
witness "Vote" {
|
||||
Base process_id_0,
|
||||
Base process_id_1,
|
||||
Base secret_key,
|
||||
|
||||
Reference in New Issue
Block a user