Skip to content

Commit

Permalink
Updating documentation to point to RFC9591.
Browse files Browse the repository at this point in the history
  • Loading branch information
armfazh committed Jul 8, 2024
1 parent 72293a5 commit bc52b06
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
5 changes: 1 addition & 4 deletions tss/frost/frost.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
// Package frost provides the FROST threshold signature scheme for Schnorr signatures.
//
// FROST paper: https://eprint.iacr.org/2020/852
//
// draft-irtf-cfrg-frost: https://datatracker.ietf.org/doc/draft-irtf-cfrg-frost
//
// Version supported: v15
// RFC 9519: https://www.rfc-editor.org/rfc/rfc9591
package frost

import (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,4 @@
"final_output": {
"sig": "026d8d434874f87bdb7bc0dfd239b2c00639044f9dcb195e9a04426f70bfa4b70d9620acac6767e8e3e3036815fca4eb3a3caa69992b902bcd3352fc34f1ac192f"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,4 @@
"final_output": {
"sig": "fc45655fbc66bbffad654ea4ce5fdae253a49a64ace25d9adb62010dd9fb25552164141787162e5b4cab915b4aa45d94655dbb9ed7c378a53b980a0be220a802"
}
}
}
7 changes: 3 additions & 4 deletions tss/frost/vectors_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,12 +203,11 @@ func readFile(t *testing.T, fileName string) *vector {
}

func TestVectors(t *testing.T) {
// Draft published at https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-frost-15
// RFC 9519: https://www.rfc-editor.org/rfc/rfc9591
// Test vectors at https://github.com/cfrg/draft-irtf-cfrg-frost
// Version supported: v15
suite, vector := P256, readFile(t, "testdata/frost_p256_sha256.json")
suite, vector := P256, readFile(t, "testdata/rfc9591_frost_p256_sha256.json")
t.Run(fmt.Sprintf("%v", suite), func(tt *testing.T) { vector.test(tt, suite) })

suite, vector = Ristretto255, readFile(t, "testdata/frost_ristretto255_sha512.json")
suite, vector = Ristretto255, readFile(t, "testdata/rfc9591_frost_ristretto255_sha512.json")
t.Run(fmt.Sprintf("%v", suite), func(tt *testing.T) { vector.test(tt, suite) })
}

0 comments on commit bc52b06

Please sign in to comment.