asSignedBytes

Byte array representation of 2’s complement value

BigInt.swift:474
func asSignedBytes() -> Bytes

Returns

Minimal big-endian 2’s complement byte array representation

Examples:

  • BInt(1).asSignedBytes() = [1]

  • BInt(-1).asSignedBytes() = [255]