contract/lib/KeyPair.js
/**
     * Creates a new prototype of KeyPair receiving parameters.
     * @param {KeyPair} keys A kind of KeyPair configured with values. 
     */
Creates a new prototype of KeyPair receiving parameters.
@param {KeyPair} keys A kind of KeyPair configured with values.
Creates a new prototype of KeyPair receiving parameters . @param { KeyPair } keys A kind of KeyPair configured with values .
static createKeyPair(keys){
        let newInstance = new KeyPair();
        newInstance.setPublicArmored(keys.publicArmored);
        newInstance.setPrivateArmored(keys.privateArmored);
        newInstance.setRevocationCertificate(keys.revocationCertificate);
        return newInstance;
    }
static createKeyPair ( keys ) { let newInstance = new KeyPair ( ) ; newInstance . setPublicArmored ( keys . publicArmored ) ; newInstance . setPrivateArmored ( keys . privateArmored ) ; newInstance . setRevocationCertificate ( keys . revocationCertificate ) ; return newInstance ; }
Creates a new prototype of KeyPair receiving parameters.
Creates a new prototype of KeyPair receiving parameters .