ethers.js/packages/wordlists/lib/wordlist.js
2022-04-11 17:14:19 -04:00

15 lines
408 B
JavaScript

import { defineProperties } from "@ethersproject/properties";
export class Wordlist {
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