Skip to content

Commit 8b8c66e

Browse files
committed
add README
1 parent 7c9b1a4 commit 8b8c66e

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# ecdsa_motoko
22

3+
Just for learning, Do not use in production environment.
4+
5+
Without performance optimization, verifying two signatures in one call will cause the instruction limit to be exceeded.
6+
37
```bash
48
# Starts the replica, running in the background
59
dfx start --background

src/ecdsa_motoko_backend/main.mo

-6
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,6 @@ actor {
4141
let s1 = 0x1878DBC4684DE3A63A5975325B467CDBA846B24D949322016FE4C8FD2C0862A1;
4242
assert secp256r1.verify_ecdsa(pub, msg_hash1, r1, s1);
4343

44-
// let msg_hash2 = 0x0F1AE6C77FEE73F3AC9BE1217F50C576C07D7E5FAA0E178A232DD33D09FF2CDE;
45-
// let r2 = 0xB9201D2D40D63EB41D934C9D45280837CA09B03C4E063946CAA06EABEAACB944;
46-
// let s2 = 0xBA69F449ED11E3677AB37367D99EC3B399A006FE875941F5DA57156A8FE9C8E0;
47-
48-
// assert secp256r1.verify_ecdsa(pub, msg_hash2, r2, s2);
49-
5044
return true;
5145
};
5246

0 commit comments

Comments
 (0)