Encode a BigInt instance into a Buffer, ensuring it adheres to specific constraints.
BigInt instance to encode.
Maximum byte length allowed for the encoding. If undefined, no byte size limit is imposed.
Contextual information for error messages.
Encoded data.
Encode a BigInt instance into a Buffer, ensuring it adheres to specific constraints.
Throws