From 1c0039dc554fc4b92dacca8c91e5b2020da55c71 Mon Sep 17 00:00:00 2001 From: Pratik Patil Date: Tue, 18 Feb 2025 09:13:29 +0530 Subject: [PATCH] bridge: removed unused function --- bridge/util/common.go | 9 --------- 1 file changed, 9 deletions(-) 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]) -}