-Git Source
+Git Source
uint256 internal constant K256_P = 0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f;
diff --git a/sol/sapphire-contracts/contracts/EthereumUtils.sol/struct.SignatureRSV.html b/sol/sapphire-contracts/contracts/EthereumUtils.sol/struct.SignatureRSV.html
index 62a0ecb4..63d24c07 100644
--- a/sol/sapphire-contracts/contracts/EthereumUtils.sol/struct.SignatureRSV.html
+++ b/sol/sapphire-contracts/contracts/EthereumUtils.sol/struct.SignatureRSV.html
@@ -89,7 +89,7 @@
@@ -176,7 +176,7 @@
-Git Source
+Git Source
struct SignatureRSV {
bytes32 r;
bytes32 s;
diff --git a/sol/sapphire-contracts/contracts/RLPWriter.sol/library.RLPWriter.html b/sol/sapphire-contracts/contracts/RLPWriter.sol/library.RLPWriter.html
index 159eac1d..e4a79055 100644
--- a/sol/sapphire-contracts/contracts/RLPWriter.sol/library.RLPWriter.html
+++ b/sol/sapphire-contracts/contracts/RLPWriter.sol/library.RLPWriter.html
@@ -89,7 +89,7 @@
@@ -176,7 +176,7 @@
-Git Source
+Git Source
Author:
RLPWriter is a library for encoding Solidity types to RLP bytes. Adapted from Bakaoh's
RLPEncode library (https://github.com/bakaoh/solidity-rlp-encode) with minor
diff --git a/sol/sapphire-contracts/contracts/Sapphire.sol/function.sha384.html b/sol/sapphire-contracts/contracts/Sapphire.sol/function.sha384.html
new file mode 100644
index 00000000..c2d32b88
--- /dev/null
+++ b/sol/sapphire-contracts/contracts/Sapphire.sol/function.sha384.html
@@ -0,0 +1,244 @@
+
+
+
+
+
+ sha384 - Sapphire Contracts Lib
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Git Source
+Hash the input data with SHA-384
+function sha384(bytes memory input) view returns (bytes memory output);
+
+Parameters
+Name Type Description
+input
bytes
Bytes to hash
+
+
+Returns
+Name Type Description
+output
bytes
48 byte digest
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/sol/sapphire-contracts/contracts/Sapphire.sol/function.sha512.html b/sol/sapphire-contracts/contracts/Sapphire.sol/function.sha512.html
index af3206b1..09267f61 100644
--- a/sol/sapphire-contracts/contracts/Sapphire.sol/function.sha512.html
+++ b/sol/sapphire-contracts/contracts/Sapphire.sol/function.sha512.html
@@ -89,7 +89,7 @@
@@ -176,7 +176,7 @@
-Git Source
+Git Source
Hash the input data with SHA-512
function sha512(bytes memory input) view returns (bytes memory output);
@@ -194,11 +194,11 @@
-
+
-
+
@@ -208,11 +208,11 @@
-
+
-
+
diff --git a/sol/sapphire-contracts/contracts/Sapphire.sol/function.sha512_256.html b/sol/sapphire-contracts/contracts/Sapphire.sol/function.sha512_256.html
index 629e8ace..1db0dfc7 100644
--- a/sol/sapphire-contracts/contracts/Sapphire.sol/function.sha512_256.html
+++ b/sol/sapphire-contracts/contracts/Sapphire.sol/function.sha512_256.html
@@ -89,7 +89,7 @@
@@ -176,7 +176,7 @@
-Git Source
+Git Source
Hash the input data with SHA-512/256
SHA-512 is vulnerable to length-extension attacks, which are relevant if you
are computing the hash of a secret message. The SHA-512/256 variant is
@@ -197,11 +197,11 @@
-
+
-
+
@@ -211,11 +211,11 @@
-
+
-
+
diff --git a/sol/sapphire-contracts/contracts/Sapphire.sol/library.Sapphire.html b/sol/sapphire-contracts/contracts/Sapphire.sol/library.Sapphire.html
index c958d533..a419fb95 100644
--- a/sol/sapphire-contracts/contracts/Sapphire.sol/library.Sapphire.html
+++ b/sol/sapphire-contracts/contracts/Sapphire.sol/library.Sapphire.html
@@ -89,7 +89,7 @@
@@ -176,7 +176,7 @@
-Git Source
+Git Source
Convenient wrapper methods for Sapphire's cryptographic primitives.
@@ -209,6 +209,9 @@
address internal constant SHA512 = 0x0100000000000000000000000000000000000102;
+
+address internal constant SHA384 = 0x0100000000000000000000000000000000000103;
+
Returns cryptographically secure random bytes.
@@ -374,7 +377,8 @@
Secp256k1PrehashedKeccak256,
Secp256k1PrehashedSha256,
Sr25519,
- Secp256r1PrehashedSha256
+ Secp256r1PrehashedSha256,
+ Secp384r1PrehashedSha384
}
@@ -386,7 +390,7 @@
-
+
@@ -400,7 +404,7 @@
-
+
diff --git a/sol/sapphire-contracts/contracts/Subcall.sol/library.Subcall.html b/sol/sapphire-contracts/contracts/Subcall.sol/library.Subcall.html
index bdb806af..bf036733 100644
--- a/sol/sapphire-contracts/contracts/Subcall.sol/library.Subcall.html
+++ b/sol/sapphire-contracts/contracts/Subcall.sol/library.Subcall.html
@@ -89,7 +89,7 @@
@@ -176,7 +176,7 @@
-Git Source
+Git Source
Interact with Oasis Runtime SDK modules from Sapphire.
@@ -296,7 +296,7 @@
-
+
diff --git a/sol/sapphire-contracts/contracts/WrappedROSE.sol/contract.WrappedROSE.html b/sol/sapphire-contracts/contracts/WrappedROSE.sol/contract.WrappedROSE.html
index 47494fd9..f5284b5b 100644
--- a/sol/sapphire-contracts/contracts/WrappedROSE.sol/contract.WrappedROSE.html
+++ b/sol/sapphire-contracts/contracts/WrappedROSE.sol/contract.WrappedROSE.html
@@ -89,7 +89,7 @@
@@ -176,7 +176,7 @@
-Git Source
+Git Source
Inherits:
ERC20, ERC20Burnable
diff --git a/sol/sapphire-contracts/contracts/opl/Enclave.sol/contract.Enclave.html b/sol/sapphire-contracts/contracts/opl/Enclave.sol/contract.Enclave.html
index 934d3283..9430a999 100644
--- a/sol/sapphire-contracts/contracts/opl/Enclave.sol/contract.Enclave.html
+++ b/sol/sapphire-contracts/contracts/opl/Enclave.sol/contract.Enclave.html
@@ -89,7 +89,7 @@
@@ -176,7 +176,7 @@
-Git Source
+Git Source
Inherits:
Endpoint , ERC2771Context
The Sapphire-side of an OPL dapp.
diff --git a/sol/sapphire-contracts/contracts/opl/Endpoint.sol/contract.BaseEndpoint.html b/sol/sapphire-contracts/contracts/opl/Endpoint.sol/contract.BaseEndpoint.html
index ec48da8a..156d444c 100644
--- a/sol/sapphire-contracts/contracts/opl/Endpoint.sol/contract.BaseEndpoint.html
+++ b/sol/sapphire-contracts/contracts/opl/Endpoint.sol/contract.BaseEndpoint.html
@@ -89,7 +89,7 @@
@@ -176,7 +176,7 @@
-Git Source
+Git Source
Inherits:
Context
diff --git a/sol/sapphire-contracts/contracts/opl/Endpoint.sol/contract.Endpoint.html b/sol/sapphire-contracts/contracts/opl/Endpoint.sol/contract.Endpoint.html
index 83f967f0..8563e871 100644
--- a/sol/sapphire-contracts/contracts/opl/Endpoint.sol/contract.Endpoint.html
+++ b/sol/sapphire-contracts/contracts/opl/Endpoint.sol/contract.Endpoint.html
@@ -89,7 +89,7 @@
@@ -176,7 +176,7 @@
-Git Source
+Git Source
Inherits:
BaseEndpoint
An app that sends or receives using OPL.
@@ -194,7 +194,7 @@
-
+
@@ -208,7 +208,7 @@
-
+
diff --git a/sol/sapphire-contracts/contracts/opl/Endpoint.sol/enum.Result.html b/sol/sapphire-contracts/contracts/opl/Endpoint.sol/enum.Result.html
index 662456d4..bd809763 100644
--- a/sol/sapphire-contracts/contracts/opl/Endpoint.sol/enum.Result.html
+++ b/sol/sapphire-contracts/contracts/opl/Endpoint.sol/enum.Result.html
@@ -89,7 +89,7 @@
@@ -176,7 +176,7 @@
-Git Source
+Git Source
The outcome of the message call.
enum Result {
PermanentFailure,
diff --git a/sol/sapphire-contracts/contracts/opl/Endpoint.sol/error.AutoConfigUnavailable.html b/sol/sapphire-contracts/contracts/opl/Endpoint.sol/error.AutoConfigUnavailable.html
index 4830ccf3..fe69b98f 100644
--- a/sol/sapphire-contracts/contracts/opl/Endpoint.sol/error.AutoConfigUnavailable.html
+++ b/sol/sapphire-contracts/contracts/opl/Endpoint.sol/error.AutoConfigUnavailable.html
@@ -89,7 +89,7 @@
@@ -176,7 +176,7 @@
-Git Source
+Git Source
Unable to automatically configure OPL. Please use the manual version of the base contract.
error AutoConfigUnavailable();
diff --git a/sol/sapphire-contracts/contracts/opl/Endpoint.sol/error.MissingRemoteAddr.html b/sol/sapphire-contracts/contracts/opl/Endpoint.sol/error.MissingRemoteAddr.html
index 216e31bb..fc3022bf 100644
--- a/sol/sapphire-contracts/contracts/opl/Endpoint.sol/error.MissingRemoteAddr.html
+++ b/sol/sapphire-contracts/contracts/opl/Endpoint.sol/error.MissingRemoteAddr.html
@@ -89,7 +89,7 @@
@@ -176,7 +176,7 @@
-Git Source
+Git Source
The remote endpoint's contract address was missing.
error MissingRemoteAddr();
diff --git a/sol/sapphire-contracts/contracts/opl/Endpoint.sol/error.MissingRemoteChainId.html b/sol/sapphire-contracts/contracts/opl/Endpoint.sol/error.MissingRemoteChainId.html
index b8cfafb4..83a65af2 100644
--- a/sol/sapphire-contracts/contracts/opl/Endpoint.sol/error.MissingRemoteChainId.html
+++ b/sol/sapphire-contracts/contracts/opl/Endpoint.sol/error.MissingRemoteChainId.html
@@ -89,7 +89,7 @@
@@ -176,7 +176,7 @@
-Git Source
+Git Source
The remote endpoint's chain ID was missing.
error MissingRemoteChainId();
diff --git a/sol/sapphire-contracts/contracts/opl/Endpoint.sol/error.NotMessageBus.html b/sol/sapphire-contracts/contracts/opl/Endpoint.sol/error.NotMessageBus.html
index 90611441..d22cd6a1 100644
--- a/sol/sapphire-contracts/contracts/opl/Endpoint.sol/error.NotMessageBus.html
+++ b/sol/sapphire-contracts/contracts/opl/Endpoint.sol/error.NotMessageBus.html
@@ -89,7 +89,7 @@
@@ -176,7 +176,7 @@
-Git Source
+Git Source
The method can only be called by the message bus;
error NotMessageBus();
diff --git a/sol/sapphire-contracts/contracts/opl/Endpoint.sol/error.NotRemoteEndpoint.html b/sol/sapphire-contracts/contracts/opl/Endpoint.sol/error.NotRemoteEndpoint.html
index b996fa19..4633100e 100644
--- a/sol/sapphire-contracts/contracts/opl/Endpoint.sol/error.NotRemoteEndpoint.html
+++ b/sol/sapphire-contracts/contracts/opl/Endpoint.sol/error.NotRemoteEndpoint.html
@@ -89,7 +89,7 @@
@@ -176,7 +176,7 @@
-Git Source
+Git Source
Messages may only be sent by the remote endpoint (Enclave or Host).
error NotRemoteEndpoint();
diff --git a/sol/sapphire-contracts/contracts/opl/Endpoint.sol/error.ReceiverError.html b/sol/sapphire-contracts/contracts/opl/Endpoint.sol/error.ReceiverError.html
index b92ce314..f05c8507 100644
--- a/sol/sapphire-contracts/contracts/opl/Endpoint.sol/error.ReceiverError.html
+++ b/sol/sapphire-contracts/contracts/opl/Endpoint.sol/error.ReceiverError.html
@@ -89,7 +89,7 @@
@@ -176,7 +176,7 @@
-Git Source
+Git Source
Receiving endpoint did not return successfully.
error ReceiverError();
diff --git a/sol/sapphire-contracts/contracts/opl/Endpoint.sol/error.SelfCallDisallowed.html b/sol/sapphire-contracts/contracts/opl/Endpoint.sol/error.SelfCallDisallowed.html
index c084f754..b046d75f 100644
--- a/sol/sapphire-contracts/contracts/opl/Endpoint.sol/error.SelfCallDisallowed.html
+++ b/sol/sapphire-contracts/contracts/opl/Endpoint.sol/error.SelfCallDisallowed.html
@@ -89,7 +89,7 @@
@@ -176,7 +176,7 @@
-Git Source
+Git Source
Calls to contracts on the same chain are not allowed unless on a local testnet.
error SelfCallDisallowed();
diff --git a/sol/sapphire-contracts/contracts/opl/Endpoint.sol/error.UnknownEndpoint.html b/sol/sapphire-contracts/contracts/opl/Endpoint.sol/error.UnknownEndpoint.html
index b6103bc2..b56f13b4 100644
--- a/sol/sapphire-contracts/contracts/opl/Endpoint.sol/error.UnknownEndpoint.html
+++ b/sol/sapphire-contracts/contracts/opl/Endpoint.sol/error.UnknownEndpoint.html
@@ -89,7 +89,7 @@
@@ -176,7 +176,7 @@
-Git Source
+Git Source
The requested endpoint does not exist.
error UnknownEndpoint();
diff --git a/sol/sapphire-contracts/contracts/opl/Endpoint.sol/error.WrongSeqNum.html b/sol/sapphire-contracts/contracts/opl/Endpoint.sol/error.WrongSeqNum.html
index 64be38b6..94e73d79 100644
--- a/sol/sapphire-contracts/contracts/opl/Endpoint.sol/error.WrongSeqNum.html
+++ b/sol/sapphire-contracts/contracts/opl/Endpoint.sol/error.WrongSeqNum.html
@@ -89,7 +89,7 @@
@@ -176,7 +176,7 @@
-Git Source
+Git Source
This message arrived too early or late.
error WrongSeqNum(uint256 expected, uint256 got);
diff --git a/sol/sapphire-contracts/contracts/opl/Endpoint.sol/function._chainName2ChainId.html b/sol/sapphire-contracts/contracts/opl/Endpoint.sol/function._chainName2ChainId.html
index 7267648d..a340773a 100644
--- a/sol/sapphire-contracts/contracts/opl/Endpoint.sol/function._chainName2ChainId.html
+++ b/sol/sapphire-contracts/contracts/opl/Endpoint.sol/function._chainName2ChainId.html
@@ -89,7 +89,7 @@
@@ -176,7 +176,7 @@
-Git Source
+Git Source
function _chainName2ChainId(bytes32 name) pure returns (uint256);
@@ -184,11 +184,11 @@
-
+
-
+
diff --git a/sol/sapphire-contracts/contracts/opl/Endpoint.sol/function._getBus.html b/sol/sapphire-contracts/contracts/opl/Endpoint.sol/function._getBus.html
index bccd26e0..0514bd26 100644
--- a/sol/sapphire-contracts/contracts/opl/Endpoint.sol/function._getBus.html
+++ b/sol/sapphire-contracts/contracts/opl/Endpoint.sol/function._getBus.html
@@ -89,7 +89,7 @@
@@ -176,7 +176,7 @@
-Git Source
+Git Source
function _getBus(address _remote, bytes32 _remoteChainName) view returns (address);
@@ -184,11 +184,11 @@
-
+
-
+
@@ -198,11 +198,11 @@
-
+
-
+
diff --git a/sol/sapphire-contracts/contracts/opl/Endpoint.sol/function._getChainConfig.html b/sol/sapphire-contracts/contracts/opl/Endpoint.sol/function._getChainConfig.html
index 589ecd9d..8c1041da 100644
--- a/sol/sapphire-contracts/contracts/opl/Endpoint.sol/function._getChainConfig.html
+++ b/sol/sapphire-contracts/contracts/opl/Endpoint.sol/function._getChainConfig.html
@@ -89,7 +89,7 @@
@@ -176,7 +176,7 @@
-Git Source
+Git Source
Configs from https://im-docs.celer.network/developer/contract-addresses-and-rpc-info.
function _getChainConfig(uint256 _chainId) pure returns (address _messageBus, bool _isTestnet);
@@ -185,11 +185,11 @@
-
+
-
+
diff --git a/sol/sapphire-contracts/contracts/opl/Endpoint.sol/function._getRemoteChainId.html b/sol/sapphire-contracts/contracts/opl/Endpoint.sol/function._getRemoteChainId.html
index 3b570017..3d6b90cf 100644
--- a/sol/sapphire-contracts/contracts/opl/Endpoint.sol/function._getRemoteChainId.html
+++ b/sol/sapphire-contracts/contracts/opl/Endpoint.sol/function._getRemoteChainId.html
@@ -89,7 +89,7 @@
@@ -176,7 +176,7 @@
-Git Source
+Git Source
function _getRemoteChainId(bytes32 _remoteChainName) view returns (uint256);
@@ -184,11 +184,11 @@
-
+
-
+
diff --git a/sol/sapphire-contracts/contracts/opl/Endpoint.sol/function.autoswitch.html b/sol/sapphire-contracts/contracts/opl/Endpoint.sol/function.autoswitch.html
index 8a11877d..f3b1cccb 100644
--- a/sol/sapphire-contracts/contracts/opl/Endpoint.sol/function.autoswitch.html
+++ b/sol/sapphire-contracts/contracts/opl/Endpoint.sol/function.autoswitch.html
@@ -89,7 +89,7 @@
@@ -176,7 +176,7 @@
-Git Source
+Git Source
Autoswitch automatically picks the remote network based on the network the contract on which the contract has already been deployed.
When on testnet, the remote chain will be the testnet version of the provided chain.
When running locally, the remote chain will be this one and the contracts will call each other without going through a message bus. This is helpful for debugging logic but does not test gas fee payment and other moving parts.
@@ -187,11 +187,11 @@
-
+
-
+
@@ -201,11 +201,11 @@
-
+
-
+
diff --git a/sol/sapphire-contracts/contracts/opl/Endpoint.sol/interface.ICelerMessageBus.html b/sol/sapphire-contracts/contracts/opl/Endpoint.sol/interface.ICelerMessageBus.html
index 84062ab3..71fb3591 100644
--- a/sol/sapphire-contracts/contracts/opl/Endpoint.sol/interface.ICelerMessageBus.html
+++ b/sol/sapphire-contracts/contracts/opl/Endpoint.sol/interface.ICelerMessageBus.html
@@ -89,7 +89,7 @@
@@ -176,7 +176,7 @@
-Git Source
+Git Source
function feeBase() external view returns (uint256);
diff --git a/sol/sapphire-contracts/contracts/opl/Host.sol/contract.Host.html b/sol/sapphire-contracts/contracts/opl/Host.sol/contract.Host.html
index 76392b07..92c0a251 100644
--- a/sol/sapphire-contracts/contracts/opl/Host.sol/contract.Host.html
+++ b/sol/sapphire-contracts/contracts/opl/Host.sol/contract.Host.html
@@ -89,7 +89,7 @@
@@ -176,7 +176,7 @@
-Git Source
+Git Source
Inherits:
Endpoint
The L1-side of an OPL dapp.
@@ -189,7 +189,7 @@
-
+
@@ -203,7 +203,7 @@
-
+
diff --git a/sol/sapphire-contracts/contracts/opl/index.html b/sol/sapphire-contracts/contracts/opl/index.html
index 240cc1dd..bd14c516 100644
--- a/sol/sapphire-contracts/contracts/opl/index.html
+++ b/sol/sapphire-contracts/contracts/opl/index.html
@@ -89,7 +89,7 @@
@@ -191,11 +191,11 @@
ICelerMessageBus
BaseEndpoint
Endpoint
-_getRemoteChainId
+_getChainConfig
+_getBus
_chainName2ChainId
+_getRemoteChainId
autoswitch
-_getBus
-_getChainConfig
Host
diff --git a/sol/sapphire-contracts/index.html b/sol/sapphire-contracts/index.html
index 479bb7b3..260e9d48 100644
--- a/sol/sapphire-contracts/index.html
+++ b/sol/sapphire-contracts/index.html
@@ -89,7 +89,7 @@
diff --git a/sol/sapphire-contracts/print.html b/sol/sapphire-contracts/print.html
index b112f3c0..42c1b7d5 100644
--- a/sol/sapphire-contracts/print.html
+++ b/sol/sapphire-contracts/print.html
@@ -90,7 +90,7 @@
@@ -215,15 +215,15 @@
ICelerMessageBus
BaseEndpoint
Endpoint
-_getRemoteChainId
+_getChainConfig
+_getBus
_chainName2ChainId
+_getRemoteChainId
autoswitch
-_getBus
-_getChainConfig
Host
-Git Source
+Git Source
Inherits:
Endpoint , ERC2771Context
The Sapphire-side of an OPL dapp.
@@ -240,52 +240,52 @@
function _msgSender() internal view override(Context, ERC2771Context) returns (address);
-Git Source
+Git Source
Unable to automatically configure OPL. Please use the manual version of the base contract.
error AutoConfigUnavailable();
-Git Source
+Git Source
The method can only be called by the message bus;
error NotMessageBus();
-Git Source
+Git Source
Messages may only be sent by the remote endpoint (Enclave or Host).
error NotRemoteEndpoint();
-Git Source
+Git Source
This message arrived too early or late.
error WrongSeqNum(uint256 expected, uint256 got);
-Git Source
+Git Source
The remote endpoint's contract address was missing.
error MissingRemoteAddr();
-Git Source
+Git Source
The remote endpoint's chain ID was missing.
error MissingRemoteChainId();
-Git Source
+Git Source
Calls to contracts on the same chain are not allowed unless on a local testnet.
error SelfCallDisallowed();
-Git Source
+Git Source
The requested endpoint does not exist.
error UnknownEndpoint();
-Git Source
+Git Source
Receiving endpoint did not return successfully.
error ReceiverError();
-Git Source
+Git Source
The outcome of the message call.
enum Result {
PermanentFailure,
@@ -294,7 +294,7 @@
}
-Git Source
+Git Source
function feeBase() external view returns (uint256);
@@ -306,7 +306,7 @@
function sendMessage(address _host, uint256 _hostChainId, bytes calldata _message) external payable;
-Git Source
+Git Source
Inherits:
Context
@@ -359,7 +359,7 @@
-Git Source
+Git Source
Encode a signed EIP-155 transaction
@@ -518,7 +518,7 @@
}
-Git Source
+Git Source
struct SignatureRSV {
bytes32 r;
bytes32 s;
@@ -526,7 +526,7 @@
}
-Git Source
+Git Source
uint256 internal constant K256_P = 0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f;
@@ -653,7 +653,7 @@
-Git Source
+Git Source
Convenient wrapper methods for Sapphire's cryptographic primitives.
@@ -844,6 +844,9 @@
address internal constant SHA512 = 0x0100000000000000000000000000000000000102;
+
+address internal constant SHA384 = 0x0100000000000000000000000000000000000103;
+
Returns cryptographically secure random bytes.
@@ -1009,11 +1012,26 @@
Secp256k1PrehashedKeccak256,
Secp256k1PrehashedSha256,
Sr25519,
- Secp256r1PrehashedSha256
+ Secp256r1PrehashedSha256,
+ Secp384r1PrehashedSha384
}
-
-Git Source
+
+Git Source
+Hash the input data with SHA-512
+function sha512(bytes memory input) view returns (bytes memory output);
+
+Parameters
+Name Type Description
+input
bytes
Bytes to hash
+
+
+Returns
+Name Type Description
+output
bytes
64 byte digest
+
+
+Git Source
Hash the input data with SHA-512/256
SHA-512 is vulnerable to length-extension attacks, which are relevant if you
are computing the hash of a secret message. The SHA-512/256 variant is
@@ -1029,10 +1047,10 @@
Name Type Description
result
bytes32
32 byte digest
-
-Git Source
-Hash the input data with SHA-512
-function sha512(bytes memory input) view returns (bytes memory output);
+
+Git Source
+Hash the input data with SHA-384
+function sha384(bytes memory input) view returns (bytes memory output);
Parameters
Name Type Description
@@ -1041,10 +1059,10 @@
Returns
Name Type Description
-output
bytes
64 byte digest
+output
bytes
48 byte digest
-Git Source
+Git Source
Interact with Oasis Runtime SDK modules from Sapphire.
@@ -1160,7 +1178,7 @@