mirror of
https://github.com/logos-messaging/go-zerokit-rln.git
synced 2026-01-02 13:13:11 +00:00
fix: invalid bytes function
This commit is contained in:
parent
144ec288d9
commit
f1211c1b07
@ -25,12 +25,12 @@ func toMembershipKeyPairs(groupKeys [][]string) ([]MembershipKeyPair, error) {
|
||||
|
||||
func Bytes32(b []byte) [32]byte {
|
||||
var result [32]byte
|
||||
copy(result[:], b)
|
||||
copy(result[32-len(b):], b)
|
||||
return result
|
||||
}
|
||||
|
||||
func Bytes256(b []byte) [256]byte {
|
||||
var result [256]byte
|
||||
copy(result[:], b)
|
||||
func Bytes128(b []byte) [128]byte {
|
||||
var result [128]byte
|
||||
copy(result[128-len(b):], b)
|
||||
return result
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user