Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block PaddeK

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
if (null != mAdapterProvisions.getItem(position) &&
null != ((NymiDevice) mAdapterProvisions.getItem(position)).getKeys() &&
!((NymiDevice) mAdapterProvisions.getItem(position)).getKeys().isEmpty()) {
((NymiDevice) mAdapterProvisions.getItem(position)).sign("Message to be signed",
((NymiDevice) mAdapterProvisions.getItem(position)).getKeys().get(0), new NymiDevice.NymiSignCallback() {
public void onMessageSigned(int status, String signature) {
if (status == NymiDevice.NymiSignCallback.SIGN_LOCAL_SUCCESS) {
// Of course your code will want to make use of this value otherwise.
// This code intends to demonstrate flow.
PaddeK / Main.cpp
Created Jul 14, 2015
Nymi SDK 2.0 C++ example
View Main.cpp
#include "ncl.h"
#include <string>
#include <iostream>
#include <iomanip>
#include <vector>
#include <sstream>
#include <fstream>
#include <array>
PaddeK / MainActivity,java
Created Jul 12, 2015
Verify Signatures within the new Nymi Android SDK 3.0.1 BETA
View MainActivity,java
package com.nymi.nymireferenceapp;
import android.os.Bundle;
import android.view.MenuItem;
import android.view.View;
import android.widget.AdapterView;
import android.widget.Button;
import android.widget.ListView;
You can’t perform that action at this time.