diff --git a/bridge/util/common.go b/bridge/util/common.go index e100d3d4..05202624 100644 --- a/bridge/util/common.go +++ b/bridge/util/common.go @@ -668,12 +668,3 @@ func LogElapsedTimeForStateSyncedEvent(event interface{}, functionName string, s "stateSyncId", typedEvent.Id, "timeElapsed", timeElapsed) } - -// IsPubKeyFirstByteValid checks the validity of the first byte of the public key. -// It must be 0x04 for uncompressed public keys -func IsPubKeyFirstByteValid(pubKey []byte) bool { - prefix := make([]byte, 1) - prefix[0] = byte(0x04) - - return bytes.Equal(prefix, pubKey[0:1]) -}