mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-09 06:33:16 +00:00
* crypto: Use curve25519-voi This switches the ed25519, sr25519 and merlin provider to curve25519-voi and additionally adopts ZIP-215 semantics for ed25519 verification. * crypto: Implement batch verification interface for ed25519 and sr25519 This commit adds the batch verification interface, but does not enable it for anything. * types: Use batch verification for verifying commits signatures
14 lines
277 B
Go
14 lines
277 B
Go
package sr25519
|
|
|
|
import tmjson "github.com/tendermint/tendermint/libs/json"
|
|
|
|
const (
|
|
PrivKeyName = "tendermint/PrivKeySr25519"
|
|
PubKeyName = "tendermint/PubKeySr25519"
|
|
)
|
|
|
|
func init() {
|
|
tmjson.RegisterType(PubKey{}, PubKeyName)
|
|
tmjson.RegisterType(PrivKey{}, PrivKeyName)
|
|
}
|