Skip to content

x/crypto/cryptobyte: expose uint48 methods #61275

Description

@hasheddan

The x/crypto/cryptobyte package currently supports methods on the Builder and String for adding and reading uint8, uint16, uint24, uint32, and uint64 values. uint48 values are useful when working with protocols such as DTLS, which uses a uint48 value for record sequence numbers.

This proposal involves introducing the two following methods:

func (b *Builder) AddUint48(v uint64)
func (s *String) ReadUint48(out *uint64) bool

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions