cborBigInt method

CborValue cborBigInt(
  1. BigInt value
)
inherited

支持 BigInt 编码(用于 chain-id 等大整数场景)

Implementation

CborValue cborBigInt(BigInt value) {
  if (value.isValidInt) {
    return cborInt(value.toInt());
  }
  return CborInt(value);
}