Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
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 signal server.
connectionOffer
: Object { connectionId
, offer
} (optional) connection offer objectwaitSeconds
: Number How long should the code wait measured in seconds (default = 60)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
notice
: Boolean whether to notice connection peer of destructionListen on given event and run callback
event
: Stringcb
: FunctionListen on given event and run callback
event
: Stringcb
: FunctionEncode given object into safe uri component
obj
: ObjectDecode given string into original object
stringified
: StringThere are 14 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_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 57 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.