Chains
BNB Beacon Chain
BNB ecosystem’s staking & governance layer
Developers
Ecosystem
Staking
Earn BNB and rewards effortlessly
Tokenization Solutions
Get Your Business Into Web3
Community
BNB Chain has introduced the following changes since v1.6 aimed at streamlining off-chain authentication and introducing a new method for object creation:
As part of these enhancements, BEP-361 and BEP-364 have undergone changes to upgrade the user experience.
Streamline Off-Chain Authentication on BNB Greenfield
BEP-361 now facilitates streamlined off-chain authentication, enabling users to finalize identity verification in Dapps with a single signature.
The latest workflow improves user experience and simplifies integration complexities for developers.
The key difference is that we removed the wallet signature while generating the EdDSA Key Pair.
Eliminating the need for a wallet signature during EdDSA Key Pair generation simplifies identity verification within Dapps. This streamlined approach is particularly beneficial for popular wallets like MetaMask and Trust Wallet, enabling them to facilitate user authentication with a single signature more seamlessly.
offchainauth.genOffChainAuthKeyPairAndUpload generate key pairs and upload the public key to sp:
;(async () => {
const offchainAuthRes = await client.offchainauth.genOffChainAuthKeyPairAndUpload({
sps: allSps,
chainId: GREEN_CHAIN_ID,
expirationMs: 5 * 24 * 60 * 60 * 1000,
domain: window.location.origin, address
},
provider
)})()
Click here for an example code
Primary Storage Provider acts as the upload agent for object creation on Greenfield
BEP-364 presents a new, simplified approach for object creation. With this upgrade, users no longer need to calculate checksums or send transactions to the Greenfield blockchain when uploading objects. Instead, users can directly send the object to the Primary Storage Provider (SP). These changes reduce the need for transaction confirmations and wallet signature pop-ups, streamline the multiple object uploading process, and simplify the provider's integration process with Greenfield.
BEP-364 has already been adopted by DCellar. Thanks to the upgrade, users should now be able to upload files faster than ever.
const uploadRes = await client.object.delegateUploadObject(
{
bucketName: createObjectInfo.bucketName,
objectName: createObjectInfo.objectName,
body: file,
},
{
type: 'EDDSA',
domain: window.location.origin,
seed: offChainData.seedString,
address,
},
);
console.log('uploadRes', uploadRes);
Click here for an example code
Committed to enhancing our platform's usability while reducing complexities, BNB Greenfield is constantly evolving its technology to offer the best experience to its users.
Website | Twitter | Telegram | Facebook | dApp Store | YouTube | Discord | LinkedIn | Build N' Build Forum