Class

CryptoExtension

CryptoExtension

Extends the VM state with common crypto functions.

Extends

Methods

# async static aesDecrypt()

Decrypts the given data with the given secret using AES-GCM.

View Source operate/vm/extension/crypto.js, line 72

# async static aesEncrypt()

Encrypts the given data with the given secret using AES-GCM.

View Source operate/vm/extension/crypto.js, line 62

# async static bitcoinMessageSign()

Signs the given Bitcoin Message with the given ECDSA private key.

View Source operate/vm/extension/crypto.js, line 154

# async static bitcoinMessageVerify()

Verifies the given signature and Bitcoin Message with the given ECDSA public key.

View Source operate/vm/extension/crypto.js, line 164

# async static ecdsaSign()

Signs the given data with the given ECDSA private key.

View Source operate/vm/extension/crypto.js, line 99

# async static ecdsaVerify()

Verifies the given signature and message with the given ECDSA public key.

View Source operate/vm/extension/crypto.js, line 106

# async static eciesDecrypt()

Decrypts the given data with the given ECDSA private key using ECIES.

View Source operate/vm/extension/crypto.js, line 92

# async static eciesEncrypt()

Encrypts the given data with the given ECDSA public key using ECIES.

View Source operate/vm/extension/crypto.js, line 82

# async static hash()

Hashes the given data using the specified algorithm.

View Source operate/vm/extension/crypto.js, line 43

# async static ripemd160()

Hashes the given data using the RIPEMD160 algorithm.

View Source operate/vm/extension/crypto.js, line 53

# async static rsaDecrypt()

Decrypts the given data with the given RSA public or private key.

View Source operate/vm/extension/crypto.js, line 123

# async static rsaEncrypt()

Encrypts the given data with the given RSA public or private key.

View Source operate/vm/extension/crypto.js, line 113

# async static rsaSign()

Signs the given data with the given RSA private key.

View Source operate/vm/extension/crypto.js, line 133

# async static rsaVerify()

Verifies the given signature and message with the given RSA public key.

View Source operate/vm/extension/crypto.js, line 143