pub fn generate_key_and_address(seed:&str, index:usize) -> (Vec<i8>, String) {
    //We only care about security 1 for this.
    let key_a = key(&seed.trits(), index, 1).unwrap();
       
    let digests_a = digests(&key_a).unwrap();
    let address_a_trits = address(&digests_a).unwrap();
    let address_a = address_a_trits.trytes().unwrap();

    (key_a, address_a)
}
/**
 * Returns Key Trit vector and the corresponding public key trytes (address)
 */
Returns Key Trit vector and the corresponding public key trytes (address)
Returns Key Trit vector and the corresponding public key trytes ( address )
pub fn generate_key_and_address(seed:&str, index:usize) -> (Vec<i8>, String) {
    //We only care about security 1 for this.
    let key_a = key(&seed.trits(), index, 1).unwrap();
    let digests_a = digests(&key_a).unwrap();
    let address_a_trits = address(&digests_a).unwrap();
    let address_a = address_a_trits.trytes().unwrap();
    (key_a, address_a)
}
pub fn generate_key_and_address ( seed : & str , index : usize ) -> ( Vec < i8 > , String ) { //We only care about security 1 for this. let key_a = key ( & seed . trits ( ) , index , 1 ) . unwrap ( ) ; let digests_a = digests ( & key_a ) . unwrap ( ) ; let address_a_trits = address ( & digests_a ) . unwrap ( ) ; let address_a = address_a_trits . trytes ( ) . unwrap ( ) ; ( key_a , address_a ) }
Returns Key Trit vector and the corresponding public key trytes (address)
Returns Key Trit vector and the corresponding public key trytes ( address )
seed
&str
index
usize
seed
&str
index
usize