UNPKG

@desig/web3

Version:

Desig: The Blockchain-Agnostic Multisig Solution

24 lines 954 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.addAptosSignature = exports.toAptosAddress = exports.isAptosAddress = void 0; const utils_1 = require("@noble/hashes/utils"); const isAptosAddress = (address) => { if (!address) return false; try { const buf = (0, utils_1.hexToBytes)(address.replace('0x', '')); return buf.length === 32; } catch (er) { return false; } }; exports.isAptosAddress = isAptosAddress; var supported_chains_1 = require("@desig/supported-chains"); Object.defineProperty(exports, "toAptosAddress", { enumerable: true, get: function () { return supported_chains_1.toAptosAddress; } }); const addAptosSignature = (transaction, { sig, addr }) => { console.warn('There is no available signature adding action in Aptos. Read more: TBD'); return transaction; }; exports.addAptosSignature = addAptosSignature; //# sourceMappingURL=apt.js.map