Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
guardee
Advanced tools
Readme
npm install guardee
The constructor of the guardee client takes an object with parameters such as signalserver_host
, signalserver_key
and connect_option
. Syntax:
const Guardee = require('guardee');
const guardee = new Guardee({
signalserver_host: 'http://signalserver.guardee.io',
signalserver_key: '906c7939ed0007b48b9c779302d788299183cb4a',
connect_option: {
initiator: true,
},
});
signalserver_host
and signalserver_key
You need to acquire signalserver_host
and signalserver_key
which contemporary Guardee wallet provides. These arguments are used to communicate with the signal server for peer-to-peer connection between your dApp and Guardee wallet.
connect_option
connetion_option
is used by guardee.connector
to provide options for its peer-to-peer connection. In case of NodeJS, you need to provide wrtc as a parameter.
const Guardee = require('guardee');
const wrtc = require('wrtc');
const guardee = new Guardee({
signalserver_host: 'http://signalserver.guardee.io',
signalserver_key: '906c7939ed0007b48b9c779302d788299183cb4a',
connect_option: {
initiator: true,
wrtc: wrtc
},
});
Register genesis connection offer to the signal server.
connectionOffer
: Object { connectionId
, offer
} (optional) connection offer objectwaitSeconds
: Number How long should the code wait measured in seconds (default = 60)Cancel genesis connection offer and notice to the signal server
Send request to connected peer
type
: String request type (account_connection
, sign_tx
, send_tx
)body
: Object request bodyencode
: Boolean (optional) whether to stringify request bodyencrypt
: Boolean (optional) whether to encode and encrypt request body with passwordpassword
: String (optional) password to encrypt request bodySend response to connected peer
type
: String response type (account_connection
, sign_tx
, send_tx
)body
: Object response bodyencode
: Boolean (optional) whether to stringify response bodyencrypt
: Boolean (optional) whether to encode and encrypt response body with passwordpassword
: String (optional) password to encrypt response bodySend data sequence to the connected peer
type
: String data sequence type ('sign_tx', 'send_tx')dataSequence
: Array array of sequential transactionsSend already chunked data sequence to the connected peer
type
: String data sequence type ('sign_tx', 'send_tx')dataChunkSequence
: Array chunked array of sequential transactionsDestroy all guardee.connector.connections
Reset connections
Listen on given event and run callback
event
: Stringcb
: Functionoptions
: ObjectRemove EventListener on given event callback function
event
: Stringfn
: Functionoptions
: ObjectEncode given object into safe uri component
obj
: ObjectDecode given string into original object
stringified
: StringThere are 15 different events that guardee.connector
emits when connection issues occur.
genesis_connection
: Emitted when the genesis connection is initiatedgenesis_offer
: Emitted when the genesis connection offer is generatedgenesis_offer_register
: Emitted when the genesis connection offer is registered to the signal servergenesis_offer_cancel
: Emitted when the genesis connection offer is cancelledgenesis_answer_received
: Emitted when the answer for the genesis connection offer is receivedgenesis_answer_set
: Emitted when the answer for the genesis connection is set to the instanceerror
: Emitted when error occursready
: Emitted when stable amount of connections are alivedisconnect
: Emitted when every peer connection is destroyedrequest
: Emitted when request is receivedresponse
: Emitted when response is receivedchunk
: Emitted when chunk is receivedchunk_start
: Emitted when the first chunk is sentchunk_data
: Emitted when chunk data is sentchunk_end
: Emitted when the last chunk is sentFAQs
Guardee Wallet API
The npm package guardee receives a total of 15 weekly downloads. As such, guardee popularity was classified as not popular.
We found that guardee demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.