@stellar/stellar-sdk
Version:
A library for working with the Stellar network, including communication with the Horizon and Soroban RPC servers.
18 lines (16 loc) • 359 B
JavaScript
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;
}
export { verifyChecksum };
//# sourceMappingURL=checksum.js.map