mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-13 13:43:30 +00:00
12 lines
261 B
Go
12 lines
261 B
Go
|
package kv
|
||
|
|
||
|
import "bytes"
|
||
|
|
||
|
// In order for an encoding to be Altair compatible, it must be prefixed with altair key.
|
||
|
func hasAltairKey(enc []byte) bool {
|
||
|
if len(altairKey) >= len(enc) {
|
||
|
return false
|
||
|
}
|
||
|
return bytes.Equal(enc[:len(altairKey)], altairKey)
|
||
|
}
|