ethers.js/lib.esm/wordlists/wordlist.js
2022-09-05 16:57:11 -04:00

16 lines
412 B
JavaScript

import { defineProperties } from "../utils/index.js";
export class Wordlist {
locale;
constructor(locale) {
defineProperties(this, { locale });
}
// Subclasses may override this
split(mnemonic) {
return mnemonic.toLowerCase().split(/ +/g);
}
// Subclasses may override this
join(words) {
return words.join(" ");
}
}
//# sourceMappingURL=wordlist.js.map