New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@saib/cardano-bifrost

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@saib/cardano-bifrost - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

2

package.json
{
"name": "@saib/cardano-bifrost",
"version": "0.0.3",
"version": "0.0.4",
"description": "A Cardano CIP30 Wallet API Library",

@@ -5,0 +5,0 @@ "main": "dist/Bifrost.js",

@@ -32,2 +32,3 @@ export type BifrostWalletMetadata = {

static _api?: BifrostWalletApi = undefined;
static _currentWalletId: string | undefined = undefined;

@@ -56,2 +57,3 @@ public static getWallets(): BifrostWalletMetadata[] {

else Bifrost._api = result;
Bifrost._currentWalletId = id;
return true;

@@ -71,2 +73,3 @@ } catch (ex) {

await Bifrost.enableAsync(id);
Bifrost._currentWalletId = id;
} else Bifrost._throwNoAPIError();

@@ -126,8 +129,8 @@ }

public static async signDataRawAsync(rewardAddrCborHex: string, message: string, walletId: BifrostWalletId) {
public static async signDataRawAsync(addressCborHex: string, message: string) {
if (Bifrost._api !== undefined) {
if (walletId === "nami")
return await Bifrost._cardano.signData(rewardAddrCborHex, message);
if (Bifrost._currentWalletId === "nami")
return await Bifrost._cardano.signData(addressCborHex, message);
else
return await Bifrost._api.signData(rewardAddrCborHex, message);
return await Bifrost._api.signData(addressCborHex, message);
}

@@ -134,0 +137,0 @@ else

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc