3 releases

0.1.4 Oct 18, 2019
0.1.3 Oct 15, 2019
0.1.2 Sep 29, 2019

#3 in #solo

MIT/Apache

1MB
510 lines

Contains (Zip file, 1MB) src/driver/Mac_OSX_VCP_Driver.zip

Wookong Solo - RUST

UART interface signer for Linux and MacOS

With CP210X: Linux already has the driver. For mac, plz install the driver in .zip

Call in RUST

extern crate solo;
...
 fn hd_getpub(&self) ->  HDWalleResult<Public>{
        let mut pk:[u8;32] = [0u8;32];
        let rv = wk_getpub(&mut pk);
        if rv==242{
            return Err(HDWalletError::DeviceNotInit);
        }else if rv!=0{
            return Err(HDWalletError::DeviceNotfound);
        }else if rv==0{
            Ok(sr25519::Public::from_raw(pk))
        }else{
            return Err(HDWalletError::DeviceError);
        }
    }
...

multi seed

Allow multi seed, max 128. All seed will be indexed by 0~127. Select which seed to use by using solo_select. Given account/pubkey and derive path to search the right seed. If found. The device will set the seed and derive path as default. Sign and getpub will use it if there is no more input to set.

If users do not select any seed and give any derive path, device will use the first seed and default derive path

No runtime deps