mirror of
https://github.com/bigchaindb/site.git
synced 2025-02-14 21:10:28 +01:00
add architecture graphic
This commit is contained in:
parent
0466be7bee
commit
f63118a97f
71
_src/_assets/images/architecture.svg
Normal file
71
_src/_assets/images/architecture.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 120 KiB |
@ -8,3 +8,48 @@ jQuery(function($) {
|
|||||||
//
|
//
|
||||||
Newsletter.init()
|
Newsletter.init()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
window.addEventListener('load', function load(event){
|
||||||
|
window.removeEventListener('load', load, false)
|
||||||
|
|
||||||
|
const driver = window.BigchainDB
|
||||||
|
const API_PATH = 'https://test.ipdb.io/api/v1/'
|
||||||
|
const APP_ID = 'b563bf22'
|
||||||
|
const APP_KEY = 'fd639614dcf8ee90a8c51a013ac11fb0'
|
||||||
|
|
||||||
|
const postButton = document.getElementById('post')
|
||||||
|
|
||||||
|
postButton.addEventListener('click', function(e) {
|
||||||
|
e.preventDefault()
|
||||||
|
|
||||||
|
const alice = new driver.Ed25519Keypair()
|
||||||
|
|
||||||
|
const message = document.getElementById('message').value
|
||||||
|
const metadata = document.getElementById('metadata').value
|
||||||
|
|
||||||
|
const tx = driver.Transaction.makeCreateTransaction(
|
||||||
|
{ assetMessage: message },
|
||||||
|
{ metaDataMessage: metadata },
|
||||||
|
[ driver.Transaction.makeOutput(
|
||||||
|
driver.Transaction.makeEd25519Condition(alice.publicKey))
|
||||||
|
],
|
||||||
|
alice.publicKey
|
||||||
|
)
|
||||||
|
const txSigned = driver.Transaction.signTransaction(tx, alice.privateKey)
|
||||||
|
|
||||||
|
const conn = new driver.Connection(API_PATH, {
|
||||||
|
app_id: APP_ID,
|
||||||
|
app_key: APP_KEY
|
||||||
|
})
|
||||||
|
|
||||||
|
conn.postTransaction(txSigned)
|
||||||
|
.then(() => {
|
||||||
|
const output = document.getElementById('output')
|
||||||
|
const outputContent = conn.getStatus(txSigned.id)
|
||||||
|
|
||||||
|
output.textContent = outputContent
|
||||||
|
})
|
||||||
|
.then((res) => console.log('Transaction status:', res.status))
|
||||||
|
|
||||||
|
}, false)
|
||||||
|
}, false)
|
||||||
|
@ -29,7 +29,7 @@ redirect_from:
|
|||||||
<p class="form-group">
|
<p class="form-group">
|
||||||
A transaction can contain a digital asset along with a message. Type something to be sent along the asset.
|
A transaction can contain a digital asset along with a message. Type something to be sent along the asset.
|
||||||
</p>
|
</p>
|
||||||
<a class="btn btn-primary" href="">Off you go</a>
|
<a class="btn btn-primary" id="post" href="#">Off you go</a>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div class="grid__col">
|
<div class="grid__col">
|
||||||
@ -57,17 +57,17 @@ redirect_from:
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<header class="section-header">
|
||||||
|
<p class="section-description">Simple, eh?</p>
|
||||||
|
</header>
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="section section--architecture">
|
<section class="section section--architecture">
|
||||||
<div class="row">
|
<div class="row row--wide">
|
||||||
<header class="section-header">
|
|
||||||
<p class="section-description">Architecture overview</p>
|
|
||||||
</header>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<figure class="architecture">
|
<figure class="architecture">
|
||||||
|
<img class="img--responsive" src="/assets/img/architecture.svg" alt="BigchainDB Overview">
|
||||||
</figure>
|
</figure>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
Loading…
Reference in New Issue
Block a user