mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-04-28 03:00:18 -04:00
Emit the signature public from the spend contract.
This was out of sync with the generated file src/circuit/spend_contract.rs that has been modified manually.
This commit is contained in:
@@ -16,6 +16,7 @@ contract spend_contract
|
||||
param serial Fr
|
||||
param randomness_coin Fr
|
||||
param secret Fr
|
||||
param signature_secret Fr
|
||||
|
||||
{% for i in range(4) %}
|
||||
param branch_{{ i }} Scalar
|
||||
@@ -131,5 +132,10 @@ start
|
||||
{% endfor %}
|
||||
# Reveal the merkle root
|
||||
emit_scalar current
|
||||
|
||||
# Emit the signature public key
|
||||
fr_as_binary_le signature_secret param:signature_secret
|
||||
ec_mul_const signature_public signature_secret G_SPEND
|
||||
emit_ec signature_public
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user