UNPKG

@okxweb3/coin-stellar

Version:

@ok/coin-stellar is a Stellar SDK for building Web3 wallets and applications. It supports Stellar and PI blockchains, enabling private key management, address generation, transaction signing, trustline creation, and asset transfers

19 lines 517 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.verifyChecksum = void 0; function verifyChecksum(expected, actual) { if (expected.length !== actual.length) { return false; } if (expected.length === 0) { return true; } for (let i = 0; i < expected.length; i += 1) { if (expected[i] !== actual[i]) { return false; } } return true; } exports.verifyChecksum = verifyChecksum; //# sourceMappingURL=checksum.js.map