Barz

class Barz

Barz functions

Functions

Link copied to clipboard
Calculate a counterfactual address for the smart contract wallet
Link copied to clipboard
open fun getDiamondCutCode(input: Array<Byte>): Array<Byte>
Returns the encoded diamondCut function call for Barz contract upgrades
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
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
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