WalletCore
WalletCore
/
wallet.core.jni
/
Barz
Barz
class
Barz
Barz functions
Functions
Functions
get
Counterfactual
Address
Link copied to clipboard
open
fun
getCounterfactualAddress
(
input
:
Array
<
Byte
>
)
:
String
Calculate a counterfactual address for the smart contract wallet
get
Diamond
Cut
Code
Link copied to clipboard
open
fun
getDiamondCutCode
(
input
:
Array
<
Byte
>
)
:
Array
<
Byte
>
Returns the encoded diamondCut function call for Barz contract upgrades
get
Formatted
Signature
Link copied to clipboard
open
fun
getFormattedSignature
(
signature
:
Array
<
Byte
>
,
challenge
:
Array
<
Byte
>
,
authenticatorData
:
Array
<
Byte
>
,
clientDataJSON
:
String
)
:
Array
<
Byte
>
Converts the original ASN-encoded signature from webauthn to the format accepted by Barz
get
Init
Code
Link copied to clipboard
open
fun
getInitCode
(
factory
:
String
,
publicKey
:
PublicKey
,
verificationFacet
:
String
,
salt
:
Int
)
:
Array
<
Byte
>
Returns the init code parameter of ERC-4337 User Operation
get
Prefixed
Msg
Hash
Link copied to clipboard
open
fun
getPrefixedMsgHash
(
msgHash
:
Array
<
Byte
>
,
barzAddress
:
String
,
chainId
:
Int
)
:
Array
<
Byte
>
Returns the final hash to be signed by Barz for signing messages &typed data