mirror of
https://github.com/luxfi/crypto.git
synced 2026-07-27 01:54:50 +00:00
30 lines
612 B
Go
30 lines
612 B
Go
// Copyright (C) 2020-2025, Lux Industries Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
package bls
|
|
|
|
type Ciphersuite int
|
|
|
|
const (
|
|
CiphersuiteSignature Ciphersuite = iota
|
|
CiphersuiteProofOfPossession
|
|
)
|
|
|
|
var ciphersuiteStrings = [...]string{
|
|
"BLS_SIG_BLS12381G2_XMD:SHA-256_SSWU_RO_POP_",
|
|
"BLS_POP_BLS12381G2_XMD:SHA-256_SSWU_RO_POP_",
|
|
}
|
|
|
|
var ciphersuiteBytes = [...][]byte{
|
|
[]byte(ciphersuiteStrings[0]),
|
|
[]byte(ciphersuiteStrings[1]),
|
|
}
|
|
|
|
func (c Ciphersuite) String() string {
|
|
return ciphersuiteStrings[c]
|
|
}
|
|
|
|
func (c Ciphersuite) Bytes() []byte {
|
|
return ciphersuiteBytes[c]
|
|
}
|