1.3.6 • Published 2 years 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
2 years ago
1.2.8
2 years ago
1.3.6
2 years ago
1.2.7
2 years ago
1.3.5
2 years ago
1.2.6
2 years ago
1.3.4
2 years ago
1.2.5
2 years ago
1.3.3
2 years ago
1.2.4
2 years ago
1.3.2
2 years ago
1.2.3
2 years ago
1.3.1
2 years ago
1.2.2
2 years ago
1.3.0
2 years ago
1.2.1
2 years ago
1.2.9
2 years ago
1.2.10
2 years ago
1.2.11
2 years ago
1.1.1
2 years ago
1.1.0
2 years ago
1.1.5
2 years ago
1.1.4
2 years ago
1.1.3
2 years ago
1.1.2
2 years ago
1.0.9
3 years ago
1.0.8
3 years ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago