from "ecc/babyjubjubParams" import BabyJubJubParams;
import "ecc/babyjubjubParams.code" as context;
import "ecc/proofOfOwnership.code" as proofOfOwnership;
import "hashes/sha256/512bitPacked.code" as sha256packed;
def hash( field[4] secret ) -> field[2]{
return sha256packed(secret);
}
def main(field[2] pkA,field[4] secret, field skA) -> field[2]{
BabyJubJubParams context = context();
// prove ownership of skA
assert (proofOfOwnership(pkA, skA, context), "Proof of ownership failed");
*please con you help me with this code *
from "ecc/babyjubjubParams" import BabyJubJubParams;
import "ecc/babyjubjubParams.code" as context;
import "ecc/proofOfOwnership.code" as proofOfOwnership;
import "hashes/sha256/512bitPacked.code" as sha256packed;
def hash( field[4] secret ) -> field[2]{
}
def main(field[2] pkA,field[4] secret, field skA) -> field[2]{
BabyJubJubParams context = context();
// prove ownership of skA
assert (proofOfOwnership(pkA, skA, context), "Proof of ownership failed");
}
for test values:
private key : 16991678254505349181906436455269812436577360563132334282170770619273509242473
public key:
x:106526329462378483579873482118282295628509285146127000685774110970384016877275
y:43175809479465761262340721080372768279537711576578949721329592792268563445275
secrect key ["174","158","102","49"]