1.3.6 • Published 11 months ago
yadacoinjs v1.3.6
WEB 3.0 Framework - YadaCoinJS
Setup
- npm install crypto-js
- add the following to your tsconfig.json inside of compilerOptions
,
"paths": {
"crypto": [
"node_modules/crypto-js"
]
}
For webpack >= version 5
yarn add node-polyfill-webpack-plugin
In node_modules/react-scripts/config/webpack.config.js add:
const NodePolyfillPlugin = require('node-polyfill-webpack-plugin');
Then under getStyleLoaders -> plugins add this to the array:
new NodePolyfillPlugin({
excludeAliases: ['crypto']
})
Usage
(async () => {
const settings = new Settings()
settings.webServiceURL = 'https://yadacoin.io' # PUT YOUR NODE URL HERE
const identity = new Identity(settings)
const graph = new Graph(settings, identity)
const user = await identity.getIdentity()
const signature = await identity.getSignature('message to sign', 'iframe or window') // 'window' will open and load the identity widget into a popup window. 'iframe' will load the identity widget in an iframe with the id of yadacoin_identity_widget. If an element does not exist with that id, one will be created.
})
1.2.0
12 months ago
1.2.8
12 months ago
1.3.6
11 months ago
1.2.7
12 months ago
1.3.5
11 months ago
1.2.6
12 months ago
1.3.4
11 months ago
1.2.5
12 months ago
1.3.3
11 months ago
1.2.4
12 months ago
1.3.2
11 months ago
1.2.3
12 months ago
1.3.1
11 months ago
1.2.2
12 months ago
1.3.0
11 months ago
1.2.1
12 months ago
1.2.9
12 months ago
1.2.10
12 months ago
1.2.11
12 months ago
1.1.1
12 months ago
1.1.0
12 months ago
1.1.5
12 months ago
1.1.4
12 months ago
1.1.3
12 months ago
1.1.2
12 months ago
1.0.9
2 years ago
1.0.8
2 years ago
1.0.7
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago