host source pure
2
const DefaultMaxCharacterLength
DefaultMaxCharacterLength defines the default maximum character length used in validation of identifiers including the client, connection, port and channel identifiers.
NOTE: this restriction is specific to this golang implementation of IBC. If your use case demands a higher limit, please open an issue and we will consider adjusting this restriction.
2
var DefaultMaxPortCharacterLength
DefaultMaxPortCharacterLength defines the default maximum character length used in validation of port identifiers.
var IsValidID
IsValidID defines regular expression to check if the string consist of characters in one of the following categories only: - Alphanumeric - `.`, `_`, `+`, `-`, `#` - `[`, `]`, `<`, `>`
8
func ClientIdentifierValidator
ClientIdentifierValidator is the default validator function for Client identifiers. A valid Identifier must be between 4-64 characters and only contain alphanumeric and some allowed special characters (see IsValidID).
func PacketAcknowledgementKey
PacketAcknowledgementKey returns the store key of under which a packet acknowledgement is stored. clientID must be a generated identifier, not provided externally so key collisions are not possible.
func PacketAcknowledgementPrefixKey
PacketAcknowledgementPrefixKey returns the store key prefix under which packet acknowledgements for a particular channel are stored. clientID must be a generated identifier, not provided externally so key collisions are not possible.
func PacketCommitmentKey
PacketCommitmentKey returns the store key of under which a packet commitment is stored. clientID must be a generated identifier, not provided externally so key collisions are not possible.
func PacketCommitmentPrefixKey
PacketCommitmentPrefixKey returns the store key prefix under which packet commitments for a particular client are stored. clientID must be a generated identifier, not provided externally so key collisions are not possible.
func PacketReceiptKey
PacketReceiptKey returns the store key of under which a packet receipt is stored. clientID must be a generated identifier, not provided externally so key collisions are not possible.
func PacketReceiptPrefixKey
PacketReceiptPrefixKey returns the store key prefix under which packet receipts for a particular channel are stored. clientID must be a generated identifier, not provided externally so key collisions are not possible.
func PortIdentifierValidator
PortIdentifierValidator is the default validator function for Port identifiers. A valid Identifier must be between 2-64 characters and only contain alphanumeric and some allowed special characters (see IsValidID).
1
type ValidateFn
funcValidateFn function type to validate path and identifier bytestrings
5
- errors stdlib
- gno.land/p/aib/encoding package
- gno.land/p/nt/ufmt/v0 package
- regexp stdlib
- strings stdlib