Skip to content

Commit

Permalink
bridge: removed unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
pratikspatil024 committed Feb 18, 2025
1 parent a3af4df commit 1c0039d
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions bridge/util/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -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])
}

0 comments on commit 1c0039d

Please sign in to comment.