15 lines
408 B
JavaScript
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
|