Blake3 syscall (#17358)
This commit is contained in:
18
sdk/bpf/c/inc/solana_sdk.h
Normal file → Executable file
18
sdk/bpf/c/inc/solana_sdk.h
Normal file → Executable file
@ -457,6 +457,24 @@ uint64_t sol_keccak256(
|
||||
uint8_t *result
|
||||
);
|
||||
|
||||
/**
|
||||
* Length of a Blake3 hash result
|
||||
*/
|
||||
#define BLAKE3_RESULT_LENGTH 32
|
||||
|
||||
/**
|
||||
* Blake3
|
||||
*
|
||||
* @param bytes Array of byte arrays
|
||||
* @param bytes_len Number of byte arrays
|
||||
* @param result 32 byte array to hold the result
|
||||
*/
|
||||
uint64_t sol_blake3(
|
||||
const SolBytes *bytes,
|
||||
int bytes_len,
|
||||
const uint8_t *result
|
||||
);
|
||||
|
||||
/**
|
||||
* Account Meta
|
||||
*/
|
||||
|
Reference in New Issue
Block a user