Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Seed.prototype.to_json = function() {
if (!(this.is_valid())) {
return NaN;
}
return encodeSeed(this.to_bytes(), this._type);
};
seed() {
return codec.encodeSeed(this.seedBytes, this.type);
}