Skip to content

Commit

Permalink
[lib] add lib tests for schnorr sig. (rooch-network#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
feliciss authored and Feliciss committed Apr 23, 2024
1 parent 2654f2c commit 67219f5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion fastcrypto-cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,21 @@ pub mod sigs_cli_test_vectors {
sig: "ae65a019350ebbb2280d52d19d1bed3fe804b753c1dd5ce7738ca47fa90110e668dc75b6f53972a1c812f135b099fd780bdf69f18952b777d32a865cbabce270a6af400223f9558161102348f79980537c10455355a54158b44bf62b5eef8c63",
};

pub const TEST_CASES: [TestVector; 7] = [
const SCHNORR_TEST: TestVector = TestVector {
name: "schnorr",
private: "3301e8d7e754db2cf57b0a4ca73f253c7053ad2bc5398777ba039b258e59ad9d",
public: "3e99a541db69bd32040dfe5037fbf5210dafa8151a71e21c5204b05d95ce0a62",
sig: "bf4395f2f5a75dcfc82f7f4dd9ff032c450b5caed39bdd7b09df4cfa1b15ecd0c9f1d124916903b5291623bd06f2bc005ad8e92c74ec6d962f2d41f3ea2600e7",
};

pub const TEST_CASES: [TestVector; 8] = [
ED25519_TEST,
SECP256K1_TEST,
SECP256K1_RECOVERABLE_TEST,
SECP256R1_TEST,
SECP256R1_RECOVERABLE_TEST,
BLS12381_MINSIG_TEST,
BLS12381_MINPK_TEST,
SCHNORR_TEST,
];
}

0 comments on commit 67219f5

Please sign in to comment.