var keypairs = require('ripple-keypairs');
let secret = keypairs.generateSeed({
algorithm: 'secp256k1' // or: 'ed25519'
})
// var secret = 'shobxZSHdQaQ4EmyicWzV3K7PQj1U'
var keypair = keypairs.deriveKeypair(secret);
var address = keypairs.deriveAddress(keypair.publicKey);
console.log( keypair )
console.log( { secret: secret, address: address } )