UNPKG

@confluxfans/cip-23

Version:

Tiny library with utility functions that can help with signing and verifying CIP-23 based messages

12 lines (10 loc) 287 B
import { encode as encodeAbi } from '@findeth/abi'; /** * Encode the values with the provided types. * * @param {Buffer} types * @param {unknown[]} values */ export const encode = (types: string[], values: unknown[]): Buffer => { return Buffer.from(encodeAbi(types, values)); };