ceremonyclient/protobufs/test_helpers.go
Cassandra Heart dbd95bd9e9
v2.1.0 (#439)
* v2.1.0 [omit consensus and adjacent] - this commit will be amended with the full release after the file copy is complete

* 2.1.0 main node rollup
2025-09-30 02:48:15 -05:00

11 lines
227 B
Go

package protobufs
import "bytes"
// equalBytes compares two byte slices, treating nil and empty slices as equal
func equalBytes(a, b []byte) bool {
if len(a) == 0 && len(b) == 0 {
return true
}
return bytes.Equal(a, b)
}